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
|
2017-04-05 18:28:33 +00:00
|
|
|
classname you are searching for (for example, here's the
|
|
|
|
[query](https://github.com/flutter/flutter/search?q=path%3Aexamples+new+AppBar)
|
|
|
|
for examples of the
|
|
|
|
[`AppBar`](https://docs.flutter.io/flutter/material/AppBar-class.html) class).
|
2016-09-27 21:39:15 +00:00
|
|
|
|
|
|
|
```
|
2016-09-30 20:57:39 +00:00
|
|
|
https://github.com/flutter/flutter/search?q=path%3Aexamples+new+foo
|
2016-09-27 21:39:15 +00:00
|
|
|
```
|
|
|
|
|
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
|
2017-04-05 18:28:33 +00:00
|
|
|
Flutter's widgets, including its implementation of
|
|
|
|
[material design](https://material.google.com/).
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2017-03-27 09:17:31 +00:00
|
|
|
- **Platform Channel** The [platform channel app](platform_channel)
|
2017-03-24 10:51:54 +00:00
|
|
|
demonstrates how to connect a Flutter app to platform-specific APIs. For
|
2017-04-05 18:28:33 +00:00
|
|
|
documentation, see <https://flutter.io/platform-channels/>.
|
2017-03-24 10:51:54 +00:00
|
|
|
|
2017-05-09 19:29:28 +00:00
|
|
|
- **Platform Channel Swift** The [platform channel swift app](platform_channel_swift)
|
|
|
|
is the same as [platform channel](platform_channel) but the iOS version is in
|
|
|
|
Swift and there is no Android version.
|
2017-03-30 13:11:19 +00:00
|
|
|
|
2017-03-24 10:51:54 +00:00
|
|
|
- **Flutter View** The [flutter view app](flutter_view) demonstrates how to
|
|
|
|
embed Flutter within an iOS or Android app.
|
|
|
|
|
2016-04-20 17:58:06 +00:00
|
|
|
- **Layers** The [layers vignettes](layers) show how to use the various layers
|
2017-04-05 18:28:33 +00:00
|
|
|
in the Flutter framework. For details, see the [layers README](layers/README).
|
|
|
|
|
|
|
|
- **Stocks** The [stocks](stocks) demo shows how one might structure
|
|
|
|
an application with several screens.
|