tray_manager 0.7.0
tray_manager: ^0.7.0 copied to clipboard
This plugin allows Flutter desktop apps to define a system tray icon.
0.7.0 #
- Breaking: requires Flutter 3.47 / Dart 3.13, in step with the rest of the nativeapi family. CI builds and the publish workflow pin Flutter 3.47.5.
- Breaking: depends on nativeapi ^0.3.0.
- Linux: building no longer asks for
libayatana-appindicator3-dev— nativeapi 0.3.0 stopped requiring and linking it. GTK 3, X11 and Xi development files are enough.
0.6.1 #
Documentation only.
- Correct the 0.6.0 notes: tray icon clicks are not reported on Linux — the panel keeps them and opens the menu itself, as it did in 0.5.x.
- README: drop the
app_linksknown issue, which no longer applies (tray and menu messages no longer go through Flutter's window message delegates); say what a Linux desktop needs to show the icon; list the calls that stopped throwingMissingPluginExceptionper platform; note that a native checkbox item is not toggled by a click; fix the table of contents; remove the visits badge.
0.6.0 #
tray_manager is now built on nativeapi: the per-platform plugin code is gone, and one C++ core drives macOS, Windows and Linux.
- Breaking:
package:tray_manager/tray_manager.dartexports the native API —TrayIcon,Menu,MenuItem,Imageand their events. Several tray icons at once, double-click events,contextMenuTrigger, menu item icons, radio groups and accelerators come with it. - The 0.5.x API moved to
package:tray_manager/legacy.dart:trayManager,TrayListener, and aMenu/MenuItempair with themenu_baseshape (menu_baseitself is no longer a dependency). Existing apps change one import. It is a bridge: everything in it is@Deprecatedand will be removed in a later release. The README lists the behaviour differences and maps each old call to the native API. - Breaking: requires Flutter 3.35 / Dart 3.9 and macOS 10.15.
- Linux: the tray icon is a StatusNotifierItem, and
setToolTipworks. Tray icon clicks are still not reported there. Builds need GTK 3, X11 and Xi development files and, until the next nativeapi release drops a leftover requirement, stilllibayatana-appindicator3-dev. - Windows:
.pngicons work as well as.ico. MenuItem.label,toolTip,checkedanddisabledof the legacy API update the visible menu when assigned;onClickruns once per click, with or without aTrayListener.- New example on
package:flutter/widgets.dartalone; the full one is nativeapi's tray_icon_example.
0.5.3 #
- feat(macos): add Swift Package Manager support
- chore: replace mostly_reasonable_lints with flutter_lints
- ci: align workflows with screen_retriever
0.5.2 #
- fix(windows): tray icon disappears after explorer restart #85
0.5.1 #
- Prevent plugin to be reregistered when spawning subwindow (#80)
- Fix the sandbox check to also work for docker/podman containers (#78)
- Fix: Resolved a memory leak when setting the icon multiple times on windows (#76)
0.5.0 #
- feat(windows): restore icon and context menu when Explorer restarts if necessary #71
0.4.0 #
- fix: resolve memory leak issue when update menu on macOS (#66)
0.3.1 #
- [macos] Support setting the icon size on macOS. (#60)
0.3.0 #
- chore: Add
bringAppToFrontparam topopUpContextMenumethod (#58)
0.2.4 #
- [windows][bug] fix the crash bug on windows targeting c++20 (#47)
0.2.3 #
- fix(macos): Fix app will crash when closing the tray. #44
0.2.2 #
- fix(linux): ensure icon works in sandboxed environments #43
- Updates minimum supported SDK version to Flutter 3.3/Dart 3.0.
0.2.1 #
- chore: Bump flutter to 3.6
- [linux] Fix libayatana set icon deprecation
0.2.0 #
- [macos] Implemented
setIconPositionmethod. (#25)
0.1.8 #
- [windows] getBounds method returns null when not initialized
- [macos] fixed destroy() not properly destroying tray icons #21 #22
- [macos] Fix getBounds crash
0.1.7 #
- [macos] Optimize tray icon click event response
0.1.6 #
- Support Flutter 3.0
- [macos] Implemented
setTitlemethod. - [linux] Implemented
setTitlemethod. #15 - [linux] Fix build on Ubuntu 22.04 #16 #17
0.1.5 #
- Support Checkbox MenuItem #3
- [macos] Fixed onTrayIconMouseDown not triggered
0.1.4 #
- [macos] Fix the problem that the tray highlight state is incorrect #4 #10
0.1.3 #
- [windows] Implemented
setToolTipMethod.
0.1.2 #
- [macos] Add
isTemplateparameter tosetIconmethod
0.1.1 #
- [linux] Remove
<uuid/uuid.h>dependency
0.1.0 #
- Support sub menu.
0.0.2 #
- Implemented
destroyMethod. - Implemented
setIconMethod. - Implemented
setContextMenuMethod. - Implemented
popUpContextMenuMethod. - Implemented
getBoundsMethod.
0.0.1 #
- Initial release.