Open ashutosh2014 opened 2 years ago
Similar issue here with Flutter 3.3.0 & bitsdojo_window 0.1.2 on Windows. UI is totally stuck after launching app, and can be solved by maximize the window.
Seeing the same on Flutter 3.3.0 if size is not set on app startup. Using this as a workaround.
doWhenWindowReady(() {
Size mySize = appWindow.size;
appWindow.size = Size(mySize.width, mySize.height + 0.001);
appWindow.size = Size(mySize.width, mySize.height);
});
Need to stop and restart the app fully to trigger/fix the bug. Hot restart only shows the behavior that was present on initial app startup.
In Windows, show() will call forceChildRefresh. forceChildRefresh will calling SetWindowPos twice in this method will cause a white screen problem. I think this is the reason for the white screen. My solution is to directly call setWindowPos in the flutter to display the window, instead of using the show in the plug-in.
@ljnhst Looks working well after I delete one SetWindowPos from forceChildRefresh
bitsdojo_window: ^0.1.6 Flutter version 3.19.5 Dart version 3.3.3 Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.19042.630]
I also have this white screen issue
On Running on Windows, Somes times white screen comes and on clicking maximise button UI becomes visible
flutter doctor -v