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
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
for examples of the
Available examples include:
Hello, world The hello world app is a basic app that shows the text "hello, world."
Flutter View The flutter view app demonstrates how to embed Flutter within an iOS or Android app.
Stocks The stocks demo shows how one might structure an application with several screens.
Note on Gradle wrapper files in
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.