-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Important] [Windows] Distortion of window while starting up #464
Comments
There were lots of changes in the Windows embeder EGL which probably lead to this kind of issues. |
I tried your fix but the issue comes back after opening the app 2/3 times. |
There's a workaround suggested by Far Se on Flutter Discord that allows to use Flutter v3.22.x with window_manager in Windows WidgetsBinding.instance.addPostFrameCallback((Duration timeStamp) async {
if (Theme.of(context).platform != TargetPlatform.windows) return;
await Future<void>.delayed(const Duration(milliseconds: 100), () {
windowManager.getSize().then((Size value) {
windowManager.setSize(
Size(value.width + 1, value.height + 1),
);
});
});
}); Add following in the root App's (the very first widget where |
OK,I will try this. Thinks. |
This method is feasible, but I think it may be better。
|
I also encountered this issue, but the suggested solution didn't worked for me - on Flutter 3.24.3. Somewhere in the widget tree, after creating the MaterialApp, a Lottie was being played using a controller - but it was rendering only when it was done loading from the asset file. So I decided to have something rendering while the lottie was loading and it worked. |
hey @lijy91 if you can look into this issue when you get time? Lots of users are suffering for this. |
I found a hacky solution.
|
We also have this issue in AppFlowy, we ended up switching to bitsdojo on windows rather than window_manager. I want to switch back, but the workarounds are hacky (and not usable for all cases) and ends up with a bad user experience. |
After upgrading to Flutter 3.22.1, Window manager is causing the entire UI to be glitched out (distorted) initially after launch.
This is how it looks
If I turn off/comment out
windowManager.ensureInitialized
andwindowManager.waitUntilReadyToShow
function calls, the app shows up completely fine except the Title bar is visible (as expected).There are no errors/exceptions being thrown at the Console. So, I guess this is caused any embedder change in Flutter engine?
Upstream issue: KRTirtho/spotube#1553
Thanks for your amazing work and the plugin @lijy91 ❤️
Please fix this as soon as possible. Lots of users are affected by it.
The text was updated successfully, but these errors were encountered: