Updates the menubar plugin to work with Flutter 3. This does not yet
add interoperability with the new built-in menubar support, it just
makes the existing plugin usable with Flutter 3:
Renames MenuItem to NativeMenuItem to avoid a collision with the
new framework class of the same name. (Renames rather than using
prefixing to reduce potential confusion.)
Adds Native to other related classes for consistency.
To begin aligning with the built-in version, renames onClicked to
onSelected, and eliminated enabled in favor of checking
onSelected for null.
Other minor updates:
Updates use of deprecated color specification in testbed.
Applies tool-generated changes to various testbed files.
Updates for binding nullability changes.
Eliminated the unnecessary MenuSelectedCallback typedef.
Updates the
menubar
plugin to work with Flutter 3. This does not yet add interoperability with the new built-in menubar support, it just makes the existing plugin usable with Flutter 3:MenuItem
toNativeMenuItem
to avoid a collision with the new framework class of the same name. (Renames rather than using prefixing to reduce potential confusion.)Native
to other related classes for consistency.onClicked
toonSelected
, and eliminatedenabled
in favor of checkingonSelected
for null.Other minor updates:
MenuSelectedCallback
typedef.Fixes https://github.com/google/flutter-desktop-embedding/issues/902