antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide window on start up macos

opened this issue · comments

Hi,
How can I hide the window and remove the icon from the dock on startup on macos?

thanks.

In the example in main()->doWhenWindowReady() I commented out win.show(); and the app starts without showing the window.

PS:
and if you want to start the application without having an icon in the task bar on macos you have to add in macos/Runner/Info.plist in your project directory:

<key>LSUIElement</key>
<true/>