window_manager
window_manager copied to clipboard
Freezing after hot restart
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
It's the same issue I have on Windows
I have same problem, but I found that when I resize the window it restore normal.