google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 604 forks source link

[menubar] Add "disabled" boolean on NativeMenuItem #908

Closed vmichalak closed 2 years ago

vmichalak commented 2 years ago

Is this request within the scope of this project?

Which plugin is this request about?

menubar

Describe the request

Currently the only way to grey out (disabled) a NativeMenuItem for the User is assigning the onSelected to null. Adding a "disabled" property can be more simple to use in a lot of cases.

Thanks a lot for your job here, it's helpful.

stuartmorgan commented 2 years ago

This was changed deliberately in https://github.com/google/flutter-desktop-embedding/pull/903 to align with the new Flutter framework API.