flutter/examples/flutter_gallery
Ian Hickson 3252701753 Make it possible to run tests live on a device (#3936)
This makes it possible to substitute 'flutter run' for 'flutter test'
and actually watch a test run on a device.

For any test that depends on flutter_test:

1. Remove any import of 'package:test/test.dart'.

2. Replace `testWidgets('...', (WidgetTester tester) {`
      with `testWidgets('...', (WidgetTester tester) async {`

3. Add an "await" in front of calls to any of the following:
    * tap()
    * tapAt()
    * fling()
    * flingFrom()
    * scroll()
    * scrollAt()
    * pump()
    * pumpWidget()

4. Replace any calls to `tester.flushMicrotasks()` with calls to
   `await tester.idle()`.

There's a guarding API that you can use, if you have particularly
complicated tests, to get better error messages. Search for
TestAsyncUtils.
2016-05-16 12:53:13 -07:00
..
android updates from the flutter gallery rename (#3898) 2016-05-13 12:46:50 -07:00
assets Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
ios updates from the flutter gallery rename (#3898) 2016-05-13 12:46:50 -07:00
lib Make it possible to run tests live on a device (#3936) 2016-05-16 12:53:13 -07:00
test Make it possible to run tests live on a device (#3936) 2016-05-16 12:53:13 -07:00
test_driver Generate a Gallery demo transition-durations performance histogram (#3859) 2016-05-11 14:52:34 -07:00
.gitignore Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
flutter.yaml Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
pubspec.yaml Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
README.md Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00

Flutter gallery

Demo app for the Material Design widgets and other features provided by Flutter.

Icon

Icon was generated using Android Asset Studio: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=0&foreground.space.pad=0.1&foreColor=607d8b%2C0&crop=0&backgroundShape=square&backColor=ffffff%2C100&effects=none

From the Flutter Logo: https://github.com/flutter/website/blob/master/_includes/logo.html which appears to be CC-BY 4.0.