antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.
MIT License
214 stars 51 forks source link

How to keep the app in system when close button is clicked #32

Open Scylla2020 opened 2 years ago

Scylla2020 commented 2 years ago

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

yunxiuGona commented 2 years ago

the same question

antler119 commented 2 years ago

modify CloseWindowButton image

Scylla2020 commented 2 years ago

Where do I find this CloseWindowButton?

antler119 commented 2 years ago

You can find the CloseWindowButton in the example/lib/main.dart file

Scylla2020 commented 2 years ago

Thats not the close I was talking about in the question. Im talking about the close button that is there on app at the top right. The 'X' that you use to close a program

Scylla2020 commented 2 years ago

image

AnisTaluqdar commented 2 years ago

related to #7

cyz1901 commented 2 years ago

I'm sorry, but I don't know how to do this in MacOS.

antler119 commented 2 years ago

on windows and linux support keep the app when close button except on macOS