leanflutter / window_manager

This plugin allows Flutter desktop apps to resizing and repositioning the window.
https://pub.dev/packages/window_manager
MIT License
676 stars 177 forks source link

[MACOS] After windowManager.setResizable(reset) is called, no matter reset is true or false, the window size cannot be changed. #462

Open zhaofeixaing opened 1 month ago

zhaofeixaing commented 1 month ago
windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.setTitleBarStyle(TitleBarStyle.hidden,
        windowButtonVisibility: butenBool);
    await windowManager.focus();
    await windowManager.setResizable(reSize);
    await windowManager.show();

  });

this is my code , I want to not be able to resize the window when I log in, but I can resize it again when I go to the homepage, but I found that I can't change the window size as long as I call windowManager.setResizable.

tenglongwentian commented 1 month ago

设置await windowManager.setResizable(true);后await windowManager.setMinimumSize无效。 @zhaofeixaing