flutter/examples
Greg Spencer 2d9ad26086
Implements a PlatformMenuBar widget and associated data structures (#100274)
Implements a PlatformMenuBar widget and associated data structures for defining menu bars that use native APIs for rendering.

This PR includes:
A PlatformMenuBar class, which is a widget that menu bar data can be attached to for sending to the platform.
A PlatformMenuDelegate base, which is the type taken by a new WidgetsBinding.platformMenuDelegate.
An implementation of the above in DefaultPlatformMenuDelegate that talks to the built-in "flutter/menu" channel to talk to the built-in platform implementation. The delegate is so that a plugin could override with its own delegate and provide other platforms with native menu support using the same widgets to define the menus.
This is the framework part of the implementation. The engine part will be in flutter/engine#32080 (and flutter/engine#32358)
2022-04-04 15:03:10 -07:00
..
api Implements a PlatformMenuBar widget and associated data structures (#100274) 2022-04-04 15:03:10 -07:00
flutter_view Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
hello_world Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
image_list Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
layers Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
platform_channel Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
platform_channel_swift Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
platform_view Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
splash Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
flutter_gallery.readme Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00
README.md Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00

Flutter Examples

This directory contains several examples of using Flutter. To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

For additional samples, see the flutter/samples repo.

Available examples include:

Notes

Note on Gradle wrapper files in .gitignore:

Gradle wrapper files should normally be checked into source control. The example projects don't do that to avoid having several copies of the wrapper binary in the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling, and the wrapper files are .gitignore'd to avoid making the Flutter repository dirty as a side effect of running the examples.