tray_manager through its 0.5.x compatible API (package:tray_manager/legacy.dart):
one tray icon driven by the classic trayManager calls and a TrayListener.
That API is deprecated and will be removed in a later release; it is shown here for apps that are still on their way to the native API.
lib/tray_controller.dart— everytrayManagercall, the context menu, the listenerlib/main.dart,lib/widgets/— the window: one row of choices per API, the bounds read back from the system, and a log of the listener callbacks. Built onpackage:flutter/widgets.dartalone.
flutter run -d macos
flutter run -d linux
flutter run -d windowsThis one is deliberately small. Several icons at once, animated icons, every native property with read-back, and an acceptance checklist are in nativeapi's tray_icon_example.