Open Merrit opened 3 weeks ago
I'm getting the same issue on Windows
+1 any workaround?
I did not realize it, but window_manager
ended up giving me exactly what I need anyway, in the form of windowManager.setPreventClose(true)
. I used that instead of AppLifecycleListener.onExitRequested
and it works very well.
Having
window_manager
installed as a dependency breaksonExitRequested
from Flutter's AppLifecycleListener.Tested so far on Linux (Fedora 40 KDE, Wayland). Not sure of other platforms.
window_manager
as a dependencyExit requested
is printed instead of it closing (expected behaviour)window_manager
as a dependencyExit requested
, the window closes with a messageLost connection to device.
(unexpected behaviour)