window_manager icon indicating copy to clipboard operation
window_manager copied to clipboard

Freezing after hot restart

Open ifuterman opened this issue 1 year ago • 2 comments

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

ifuterman avatar Jun 28 '23 14:06 ifuterman

It's the same issue I have on Windows

Kweeku avatar Feb 28 '24 00:02 Kweeku

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

Kinwailo avatar Mar 28 '24 11:03 Kinwailo