You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Seems like onWindowClose isn't reliable, but if you check for eventName == 'close' in onWindowEvent along with setting setPreventClose(true), it works to manually handle closing the app as a workaround.
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)The text was updated successfully, but these errors were encountered: