flutter/examples/catalog
Jason Simmons 7f03b9e41b
Upgrade to test package version 0.12.30+4 (#14853)
30+4 has made some changes to the remoting protocol that are incompatbile
with a test harness running 30+3 (e.g. adding a type='initial' field to the
first message)
2018-02-23 12:49:57 -08:00
..
android Remove generated files from repo (#14697) 2018-02-16 12:33:21 +01:00
bin unnessary parenthesis (#14475) 2018-02-06 09:00:11 +01:00
ios Remove app.flx and add flutter_assets to project.pbxproj of all example apps (#13649) 2017-12-18 20:08:30 +01:00
lib Add semantics traversal order example (#14174) 2018-02-06 14:13:08 -08:00
test Fix tapping on a test in flutter run (#13397) 2017-12-08 14:37:24 -08:00
test_driver Updates Sample Catalog v0.0 (#11022) 2017-06-29 10:44:45 -07:00
pubspec.yaml Upgrade to test package version 0.12.30+4 (#14853) 2018-02-23 12:49:57 -08:00
README.md Sample Catalog page/screenshot production (#10212) 2017-05-22 08:09:15 -07: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 and they're all found in the lib directory.

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