flutter/examples
Danny Tuppeny ae9fdefa4f
Fix example code just showing endless spinner when deployed from Windows (#14878)
* If example code is not found, render a message instead of an endless spinner
* Trim codeTags to avoid lookup issues with windows carriage returns
* Trim \r on Windows off the end of code blocks so they're consistently \n
* Add a test to ensure sample code parses if built on Windows
* Add a comment about why we trimRight()

Fixes #14820.
2018-02-28 20:39:48 +00:00
..
catalog Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
flutter_gallery Fix example code just showing endless spinner when deployed from Windows (#14878) 2018-02-28 20:39:48 +00:00
flutter_view Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
hello_world Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
layers Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
platform_channel Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
platform_channel_swift Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
platform_view Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
stocks Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08: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.