Skip to main content

tray_core 1.0.0 copy "tray_core: ^1.0.0" to clipboard
tray_core: ^1.0.0 copied to clipboard

Pure-Dart and FFI cross-platform desktop system tray and popup menu engine for Flutter across Linux, macOS, and Windows.

1.0.0 #

  • Initial stable release of tray_core (1.0.0) — pure-Dart and FFI cross-platform desktop system tray and popup menu engine across Linux, macOS, and Windows with zero C++/CMake/Swift plugin wrappers and zero dependency on tray_manager, nativeapi, or native_core.
  • Symmetric 3-OS Architecture (TrayBackend.forCurrentPlatform(applicationId: ..., windowsIconId: ...)):
    • Linux (LinuxDbusTrayBackend, TrayDbusMenuObject, checkLinuxTraySupport): Pure-Dart org.kde.StatusNotifierItem + com.canonical.dbusmenu implementation over dbus (^0.8.0) with inline PNG icon-data, ARGB32 IconPixmap decoding, Wayland $XDG_RUNTIME_DIR/bus trailing-slash normalization, GNOME AppIndicator auto-remediation, and NameOwnerChanged watcher re-registration.
    • macOS (MacOSTrayBackend, setMacOSMenuItemImageVisibility): Cached Objective-C runtime (libobjc.A.dylib) bindings for NSStatusBar, NSStatusItem, NSMenu, and NSMenuItem, sanitized UTF-8 marshaling with @"" fallback, template NSImage rendering, class_replaceMethod Hot Restart-safe menu click rebinding, and macOS 27+ preferredImageVisibility runtime-guarded visibility.
    • Windows (WindowsTrayBackend): Cached Win32 bindings with HWND-keyed message dispatch, Hot Restart-safe DefWindowProcW class registration + per-HWND GWLP_WNDPROC binding/restoration, configurable iconId (NOTIFYICONDATAW.uID), full 976-byte (64-bit) / 956-byte (32-bit) NOTIFYICONDATAW ABI struct, top-level WS_EX_TOOLWINDOW | WS_POPUP host window, synchronous foreground ownership claim on left-click (WM_LBUTTONUP / NIN_SELECT / NIN_KEYSELECT), TaskbarCreated recovery, PostMessageW(..., WM_NULL) dismissal, and 32×32 Premultiplied BGRA CreateDIBSection HBITMAP menu icons attached strictly after AppendMenuW.
1
likes
160
points
145
downloads

Documentation

API reference

Publisher

verified publisherkeyscope.dev

Weekly Downloads

Pure-Dart and FFI cross-platform desktop system tray and popup menu engine for Flutter across Linux, macOS, and Windows.

Repository (GitHub)
View/report issues

Topics

#system-tray #statusnotifieritem #dbusmenu #desktop #menu

License

Apache-2.0 (license)

Dependencies

dbus, flutter, image, path

More

Packages that depend on tray_core