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

i want to custom menu windows #33

Closed szxv587 closed 1 year ago

szxv587 commented 1 year ago

Having the position of the icon would allow for custom menu windows to be displayed like so:

67123957-d7b6bb00-f1f1-11e9-8de8-b4931bf9b580
lijy91 commented 1 year ago

This requires change NSWindow to NSPopover, as you can see in this example https://github.com/wolfenrain/flutter_in_status_bar

hpelitebook745G2 commented 1 year ago

@lijy91 do you get this error as well?

flutter_in_status_bar/macos/Runner/AppDelegate.swift:16:25: error: value of optional type 'NSWindow?' must be unwrapped to refer to member 'contentView' of wrapped base type 'NSWindow'