Flutter Desktop:如何隐藏 window(并使进程保持活动状态)?

Flutter Desktop: how to hide a window (and keep the process alive)?

是否可以以编程方式隐藏或关闭 window(不是最小化),但仍保持进程活动?这类似于 Qt 中的 hide()/show() 方法,这是将应用程序最小化到托盘的标准方法。

目前没有用于从 Dart 代码控制 windows 的 Flutter API。您需要编写本机代码来隐藏您感兴趣的平台的 window,并通过 platform channels.

从 Dart 调用它

window_manager支持show&hidewindow。你可以试试这个。

https://github.com/leanflutter/window_manager