flutter/examples
James D. Lin f6c154c39c
Improve Swift usage in platform_channel_swift some more (#22318)
Improve Swift usage in platform_channel_swift some more

Make a bunch of changes that willlarche requested in
https://github.com/flutter/flutter/pull/21712:

* Use `static let` within `enum` namespaces for String constants.
* Use `guard` for early exits and to avoid forced unwrapping.
* Explicitly qualify a selector.
* Fix a retain cycle by using a weak reference.
2018-09-27 13:44:16 -07:00
..
catalog Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
flutter_gallery Fix picker demo safe area layout (#22244) 2018-09-26 09:28:27 -07:00
flutter_view Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
hello_world Reland "Roll engine to version e3687f70c7ece72000b32ee1b3c02755ba5361ac (#20427)" (#20633) 2018-08-15 15:35:12 -07:00
layers enable lint prefer_generic_function_type_aliases (#21680) 2018-09-14 21:06:19 +02:00
platform_channel Fix a retain cycle in the Objective-C platform_channel example (#22321) 2018-09-27 09:45:50 -07:00
platform_channel_swift Improve Swift usage in platform_channel_swift some more (#22318) 2018-09-27 13:44:16 -07:00
platform_view Unnecessary new (#20138) 2018-09-12 08:29:29 +02:00
stocks enable lint prefer_generic_function_type_aliases (#21680) 2018-09-14 21:06:19 +02:00
README.md Make consistent use of gradle wrapper (#10993) 2017-06-29 09:48:01 +02:00

Flutter Examples

This directory contains several examples of using Flutter. Each of these is an individual Dart application package.

To run an example, use flutter run inside that example's directory. See the getting started guide to install the flutter tool.

Tip: To see examples of how to use a specific Flutter framework class, copy and paste a URL with this format in your browser. Replace foo with the classname you are searching for (for example, here's the query for examples of the AppBar class).

https://github.com/flutter/flutter/search?q=path%3Aexamples+new+foo

Available examples include:

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.