Flutter Desktop: how to hide a window (and keep the process alive)?
906
Solution 1
window_manager
is support show
& hide
window. you can try this.
https://github.com/leanflutter/window_manager
Solution 2
There are currently no Flutter APIs for controlling windows from Dart code. You would need to write native code to hide the window for the platform(s) you are interested in, and call it from Dart via platform channels.
Author by
proninyaroslav
Updated on December 23, 2022Comments
-
proninyaroslav over 1 year
Is it possible to programmatically hide or close a window (not minimize), but still keep the process alive? This is similar to the
hide()
/show()
methods in Qt and this is the standard approach in order to minimize the app to the tray. -
Admin almost 3 yearsPlease add further details to expand on your answer, such as working code or documentation citations.