flutter/examples/catalog
Dan Field 20e0f13cc9
Test reporter (#28297)
* Wrap test.main with a custom processor
* Report test results to bigquery table
2019-03-06 13:13:45 -08:00
..
android Revert "Upgrade the Gradle script to Android plugin version 3.3.0 (#26913)" (#27045) 2019-01-24 14:29:08 -08:00
bin Prefer void to null (#22977) 2018-10-16 22:03:06 +02:00
ios Roll engine to 05fee4eeee0ff6b219b1fcc394371e5f6963cc46 (#26713) 2019-01-21 21:23:04 -08:00
lib Add missing trailing commas (#28673) 2019-03-01 08:17:55 +01:00
test Prefer void to null (#22977) 2018-10-16 22:03:06 +02:00
test_driver Updates Sample Catalog v0.0 (#11022) 2017-06-29 10:44:45 -07:00
pubspec.yaml Test reporter (#28297) 2019-03-06 13:13:45 -08:00
README.md Make examples/catalog instructions a bit less confusing (#24252) 2018-11-14 14:26:30 -08:00

Samples Catalog

A collection of sample apps that demonstrate how Flutter can be used.

Each sample app is contained in a single .dart file located in the lib directory. To run each sample app, specify the corresponding file on the flutter run command line, for example:

flutter run lib/animated_list.dart
flutter run lib/app_bar_bottom.dart
flutter run lib/basic_app_bar.dart
...

The apps are intended to be short and easily understood. Classes that represent the sample's focus are at the top of the file; data and support classes follow.

Each sample app contains a comment (usually at the end) which provides some standard documentation that also appears in the web view of the catalog. See the "Generating..." section below.

Generating the web view of the catalog

Markdown and a screenshot of each app are produced by bin/sample_page.dart and saved in the .generated directory. The markdown file contains the text taken from the Sample Catalog comment found in the app's source file, followed by the source code itself.

This sample_page.dart command line app must be run from the examples/catalog directory. It relies on templates also found in the bin directory, and it generates and executes test_driver apps to collect the screenshots:

cd examples/catalog
dart bin/sample_page.dart