2015-09-26 19:37:27 +00:00
|
|
|
Flutter Examples
|
|
|
|
================
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2016-02-17 15:34:59 +00:00
|
|
|
This directory contains several examples of using Flutter. Each of these is an
|
2015-10-13 20:53:05 +00:00
|
|
|
individual Dart application package.
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2016-04-20 17:58:06 +00:00
|
|
|
To run an example, use `flutter run` inside that example's directory. See the
|
2016-01-15 21:08:27 +00:00
|
|
|
[getting started guide](https://flutter.io/getting-started/) to install
|
2016-04-20 17:58:06 +00:00
|
|
|
the `flutter` tool.
|
2015-10-13 20:53:05 +00:00
|
|
|
|
2016-09-27 21:39:15 +00:00
|
|
|
**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](https://github.com/flutter/flutter/search?q=path%3Aexamples+AppBar) for examples of
|
|
|
|
the [`AppBar`](https://docs.flutter.io/flutter/material/AppBar-class.html) class).
|
|
|
|
|
|
|
|
```
|
|
|
|
https://github.com/flutter/flutter/search?q=path%3Aexamples+foo
|
|
|
|
```
|
|
|
|
|
2015-10-13 20:53:05 +00:00
|
|
|
Available examples include:
|
|
|
|
|
2016-02-17 15:34:59 +00:00
|
|
|
- **Hello, world** The [hello world app](hello_world) is a basic app that shows
|
2016-04-20 17:58:06 +00:00
|
|
|
the text "hello, world."
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2016-05-09 18:00:54 +00:00
|
|
|
- **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases
|
2016-04-20 17:58:06 +00:00
|
|
|
Flutter's implementation of [material design](https://www.google.com/design/spec/material-design/introduction.html).
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2016-04-20 17:58:06 +00:00
|
|
|
- **Layers** The [layers vignettes](layers) show how to use the various layers
|
|
|
|
in the Flutter framework. There is no main.dart in this directory because each
|
|
|
|
file is a standalone example. To run a particular file, use
|
|
|
|
`flutter run -t filename.dart`.
|