On windows, including desktop_multi_window causes a crash when attempting to exit the application by clicking on the OS's "close" button (the X in the upper-right hand corner).
Reproduce Steps
- flutter create glorp
- cd glorp
- edit pubspec.yaml, adding "desktop_multi_window: ^0.2.0" in dependencies
- flutter run
- (pick windows, that is, not edge)
- Wait for window to launch/stabilize
- Close by clicking on the X in the upper-right corner
- Get windows error dialog: "glorp has stopped working. A problem caused the program yada yada yada"
Expected behavior
No windows error dialog
Version (please complete the following information):
- Flutter Version: 3.7.7
- OS: Microsoft Windows 10 Home, version 10.0.19044
- plugin: desktop_multi_window 0.2.0