leanflutter / window_manager

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

Freezing after hot restart #360

Open ifuterman opened 1 year ago

ifuterman commented 1 year ago

I'm making an app for macOS. I need to run the app at once in the full screen. Then I use Hot restart - app is freezing. If I make full restart or hot reload - all OK.

await windowManager.ensureInitialized();
    WindowOptions windowOptions = const WindowOptions(
      center: true,
      backgroundColor: Colors.transparent,
      skipTaskbar: false,
      titleBarStyle: TitleBarStyle.normal,
    );
    await windowManager.waitUntilReadyToShow(windowOptions, () async { freezing is here
      await windowManager.maximize();
      await windowManager.show();
      await windowManager.focus();
    });

If I'll remove await before windowManager.waitUntilReadyToShow - window change sizes few times in the start but Hot restart is working

Kweeku commented 9 months ago

It's the same issue I have on Windows

Kinwailo commented 8 months ago

I have same problem, but I found that when I resize the window it restore normal.