File tree Expand file tree Collapse file tree 7 files changed +19
-5
lines changed
Expand file tree Collapse file tree 7 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 5454
5555``` yaml
5656dependencies :
57- tray_manager : ^0.2.3
57+ tray_manager : ^0.3.0
5858` ` `
5959
6060或
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Add this to your package's pubspec.yaml file:
5454
5555``` yaml
5656dependencies :
57- tray_manager : ^0.2.3
57+ tray_manager : ^0.3.0
5858` ` `
5959
6060Or
Original file line number Diff line number Diff line change 1+ ## 0.3.0
2+
3+ * chore: Add ` bringAppToFront ` param to ` popUpContextMenu ` method (#58 )
4+
15## 0.2.4
26
37* [ windows] [ bug ] fix the crash bug on windows targeting c++20 (#47 )
Original file line number Diff line number Diff line change 1+ // ignore_for_file: deprecated_member_use
2+
13import 'dart:async' ;
24import 'dart:io' ;
35
Original file line number Diff line number Diff line change 11import Cocoa
22import FlutterMacOS
33
4- @NSApplicationMain
4+ @main
55class AppDelegate : FlutterAppDelegate {
66 override func applicationShouldTerminateAfterLastWindowClosed( _ sender: NSApplication ) -> Bool {
77 return true
Original file line number Diff line number Diff line change @@ -184,7 +184,15 @@ class TrayManager {
184184 }
185185
186186 /// Pops up the context menu of the tray icon.
187- Future <void > popUpContextMenu ({bool bringAppToFront = false }) async {
187+ ///
188+ /// [bringAppToFront] If true, the app will be brought to the front when the
189+ /// context menu is shown. Only works on Windows.
190+ Future <void > popUpContextMenu ({
191+ @Deprecated (
192+ 'This parameter is only supported on Windows and will be removed in the future.' ,
193+ )
194+ bool bringAppToFront = false ,
195+ }) async {
188196 final Map <String , dynamic > arguments = {
189197 'bringAppToFront' : bringAppToFront,
190198 };
Original file line number Diff line number Diff line change 11name : tray_manager
22description : This plugin allows Flutter desktop apps to defines system tray.
3- version : 0.2.4
3+ version : 0.3.0
44homepage : https://github.com/leanflutter/tray_manager
55
66platforms :
You can’t perform that action at this time.
0 commit comments