flutter/examples
Greg Spencer 55289324c6
Remove nullOk in MediaQuery.of (#68736)
Adds MediaQuery.maybeOf to replace calling MediaQuery.of(context, nullOk: true), and removes the nullOk parameter. Also changes MediaQuery.of to return a non-nullable value, and removes many instances of the ! operator, reducing the possible places where a null dereference could occur.
2020-10-28 07:56:41 -07:00
..
flutter_view Update null safe deps to prepare for the 2.12 sdk version (#69041) 2020-10-26 14:31:13 -07:00
hello_world [flutter_tools] update to vm_service 5.2.0, update to dwds 7.0.0 (#69067) 2020-10-27 13:55:32 -07:00
image_list Update null safe deps to prepare for the 2.12 sdk version (#69041) 2020-10-26 14:31:13 -07:00
layers Remove nullOk in MediaQuery.of (#68736) 2020-10-28 07:56:41 -07:00
platform_channel [flutter_tools] update to vm_service 5.2.0, update to dwds 7.0.0 (#69067) 2020-10-27 13:55:32 -07:00
platform_channel_swift [flutter_tools] update to vm_service 5.2.0, update to dwds 7.0.0 (#69067) 2020-10-27 13:55:32 -07:00
platform_view Update null safe deps to prepare for the 2.12 sdk version (#69041) 2020-10-26 14:31:13 -07:00
splash Update null safe deps to prepare for the 2.12 sdk version (#69041) 2020-10-26 14:31:13 -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.