PlatformMenuBar changes to bring it into line with upcoming MenuBar implementation (#104565)

When I was doing the MenuBar implementation, I made some changes to the PlatformMenuBar to allow it to understand shortcuts a little more, and to deprecate the body parameter rename it to child to match most other widgets.

These are those changes, separated out because they are separable, and I'm trying to make the MenuBar PR smaller.
This commit is contained in:
Greg Spencer
2022-05-25 14:48:28 -07:00
committed by GitHub
parent 6efdf0ae7b
commit 406d86b4ba
3 changed files with 151 additions and 30 deletions

View File

@@ -126,7 +126,7 @@ class _MyMenuBarAppState extends State<MyMenuBarApp> {
],
),
],
body: Center(
child: Center(
child: Text(_showMessage
? _message
: 'This space intentionally left blank.\n'