leanflutter / tray_manager

This plugin allows Flutter desktop apps to defines system tray.
https://pub.dev/packages/tray_manager
MIT License
230 stars 36 forks source link

[macos] onTrayMenuItemClick not activated in master any more. #10

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello,

on macos in the example when using the package from pub: tray_manager: ^0.1.3

void onTrayMenuItemClick(MenuItem menuItem) {
    print(menuItem.toJson());
    BotToast.showText(
      text: '${menuItem.toJson()}',
    );
  }

onTrayMenuItemClick is activated when I select a menu item.

When I use tray_manager from the master

tray_manager:
    path: ../

the example does not work any more.

I use the master because of issue 4

lijy91 commented 2 years ago

Fixed.