blob: 0200f494f207abbc5e7021eb08343109259105ea [file] [log] [blame] [view]
Adam Bartha74d02d2015-09-26 12:37:27 -07001Flutter Examples
2================
Collin Jackson633b6502015-07-16 11:54:25 -07003
Michael Thomsen2c063b72018-10-08 08:45:24 +02004This directory contains several examples of using Flutter. To run an example,
5use `flutter run` inside that example's directory. See the [getting started
Tim Sneath52918972019-04-05 11:39:30 -07006guide](https://flutter.dev/getting-started/) to install the `flutter` tool.
Collin Jackson633b6502015-07-16 11:54:25 -07007
Michael Thomsen2c063b72018-10-08 08:45:24 +02008For additional samples, see the
9[`flutter/samples`](https://github.com/flutter/samples) repo.
qchong517ddab2016-09-27 14:39:15 -070010
Jim Beveridge93fa4462015-10-13 13:53:05 -070011Available examples include:
12
Michael Thomsen2c063b72018-10-08 08:45:24 +020013- **Hello, world** The [hello world app](hello_world) is a minimal Flutter app
14 that shows the text "hello, world."
Collin Jackson633b6502015-07-16 11:54:25 -070015
Michael Thomsene1671812020-03-16 02:31:42 -070016- **Flutter gallery** The flutter gallery app no longer lives in this repo.
17 Please see the [gallery repo](https://github.com/flutter/gallery).
Sarah Zakarias3c992722017-03-24 11:51:54 +010018
Adam Barth140bf642016-04-20 10:58:06 -070019- **Layers** The [layers vignettes](layers) show how to use the various layers
Michael Thomsen2c063b72018-10-08 08:45:24 +020020 in the Flutter framework. For details, see the [layers
21 README](layers/README.md).
Ian Hicksona52c7b42017-04-05 11:28:33 -070022
Michael Thomsen2c063b72018-10-08 08:45:24 +020023- **Platform Channel** The [platform channel app](platform_channel) demonstrates
24 how to connect a Flutter app to platform-specific APIs. For documentation, see
Tim Sneath52918972019-04-05 11:39:30 -070025 <https://flutter.dev/platform-channels/>.
Michael Thomsen2c063b72018-10-08 08:45:24 +020026
27- **Platform Channel Swift** The [platform channel swift
28 app](platform_channel_swift) is the same as [platform
29 channel](platform_channel) but the iOS version is in Swift and there is no
30 Android version.
31
32## Notes
Mikkel Nygaard Ravn1731a162017-06-29 09:48:01 +020033
34Note on Gradle wrapper files in `.gitignore`:
35
Michael Thomsen2c063b72018-10-08 08:45:24 +020036Gradle wrapper files should normally be checked into source control. The example
37projects don't do that to avoid having several copies of the wrapper binary in
38the Flutter repo. Instead, the Gradle wrapper is injected by Flutter tooling,
39and the wrapper files are .gitignore'd to avoid making the Flutter repository
40dirty as a side effect of running the examples.