leanflutter / tray_manager

This plugin allows Flutter desktop apps to defines system tray.
https://pub.dev/packages/tray_manager
MIT License
230 stars 36 forks source link

System close to tray #11

Closed yunxiuGona closed 2 years ago

yunxiuGona commented 2 years ago

How to keep the app in system when close button is clicked Is it possible to override the close button so that when a user tries to close the app it just hides and remains in systemtray as background?

lijy91 commented 2 years ago

The window_manager plugin can implement this feature.

https://github.com/leanflutter/window_manager#quit-on-close https://github.com/leanflutter/window_manager#confirm-before-closing