2015-09-26 19:37:27 +00:00
|
|
|
Flutter Examples
|
|
|
|
================
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
This directory contains several examples of using Flutter. To run an example,
|
|
|
|
use `flutter run` inside that example's directory. See the [getting started
|
2019-04-05 18:39:30 +00:00
|
|
|
guide](https://flutter.dev/getting-started/) to install the `flutter` tool.
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
For additional samples, see the
|
|
|
|
[`flutter/samples`](https://github.com/flutter/samples) repo.
|
2016-09-27 21:39:15 +00:00
|
|
|
|
2015-10-13 20:53:05 +00:00
|
|
|
Available examples include:
|
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
- **Hello, world** The [hello world app](hello_world) is a minimal Flutter app
|
|
|
|
that shows the text "hello, world."
|
2015-07-16 18:54:25 +00:00
|
|
|
|
2020-03-16 09:31:42 +00:00
|
|
|
- **Flutter gallery** The flutter gallery app no longer lives in this repo.
|
|
|
|
Please see the [gallery repo](https://github.com/flutter/gallery).
|
2017-03-24 10:51:54 +00:00
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
- **Layers** The [layers vignettes](layers) show how to use the various layers
|
|
|
|
in the Flutter framework. For details, see the [layers
|
|
|
|
README](layers/README.md).
|
2017-03-30 13:11:19 +00:00
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
- **Platform Channel** The [platform channel app](platform_channel) demonstrates
|
|
|
|
how to connect a Flutter app to platform-specific APIs. For documentation, see
|
2019-04-05 18:39:30 +00:00
|
|
|
<https://flutter.dev/platform-channels/>.
|
2017-03-24 10:51:54 +00:00
|
|
|
|
2018-10-08 06:45:24 +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-04-05 18:28:33 +00:00
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
## Notes
|
2017-06-29 07:48:01 +00:00
|
|
|
|
|
|
|
Note on Gradle wrapper files in `.gitignore`:
|
|
|
|
|
2018-10-08 06:45:24 +00:00
|
|
|
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.
|