• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Flutter Examples
2================
3
4This directory contains several examples of using Flutter. To run an example,
5use `flutter run` inside that example's directory. See the [getting started
6guide](https://flutter.dev/getting-started/) to install the `flutter` tool.
7
8For additional samples, see the
9[`flutter/samples`](https://github.com/flutter/samples) repo.
10
11Available examples include:
12
13- **Hello, world** The [hello world app](hello_world) is a minimal Flutter app
14  that shows the text "hello, world."
15
16- **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases
17  Flutter's widgets, including its implementation of [material
18  design](https://material.io/design/).
19
20- **Layers** The [layers vignettes](layers) show how to use the various layers
21  in the Flutter framework. For details, see the [layers
22  README](layers/README.md).
23
24- **Platform Channel** The [platform channel app](platform_channel) demonstrates
25  how to connect a Flutter app to platform-specific APIs. For documentation, see
26  <https://flutter.dev/platform-channels/>.
27
28- **Platform Channel Swift** The [platform channel swift
29  app](platform_channel_swift) is the same as [platform
30  channel](platform_channel) but the iOS version is in Swift and there is no
31  Android version.
32
33## Notes
34
35Note on Gradle wrapper files in `.gitignore`:
36
37Gradle wrapper files should normally be checked into source control. The example
38projects don't do that to avoid having several copies of the wrapper binary in
39the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling,
40and the wrapper files are .gitignore'd to avoid making the Flutter repository
41dirty as a side effect of running the examples.
42