bitsdojo_window
bitsdojo_window copied to clipboard
[macos] alignment center do not work in profile/release mode
versions
flutter: latest stable. (2.2.1) , latest master. platform: macos bitsdojo_window: 0.1.0+1
reproduce
-
cd bitsdojo_window/example -
flutter run -d macos --profile
Expected window show in center of screen, but it did not. In additions, debug mode seems work good.
https://github.com/bitsdojo/bitsdojo_window/blob/f2d8dfabec25722526c8996929086902df5e8fbb/bitsdojo_window/example/lib/main.dart#L13-L22
Use size final initialSize = Size(1280, 750); It is more obvious that the window is not centered.
And after removing this line of code win.alignment = Alignment.center; then the window can be centered correctly when it starts.
Any news? Seems that aligning on windows doesn't work properly as well sometimes.