bitsdojo_window icon indicating copy to clipboard operation
bitsdojo_window copied to clipboard

[macos] alignment center do not work in profile/release mode

Open boyan01 opened this issue 4 years ago • 2 comments

versions

flutter: latest stable. (2.2.1) , latest master. platform: macos bitsdojo_window: 0.1.0+1

reproduce

  1. cd bitsdojo_window/example

  2. flutter run -d macos --profile

Expected window show in center of screen, but it did not. In additions, debug mode seems work good.

boyan01 avatar Jun 02 '21 06:06 boyan01

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.

boyan01 avatar Jun 02 '21 07:06 boyan01

Any news? Seems that aligning on windows doesn't work properly as well sometimes.

0ttik avatar Dec 13 '22 05:12 0ttik