1. 17 May, 2016 1 commit
  2. 16 May, 2016 3 commits
    • Ian Hickson's avatar
      Make it possible to run tests live on a device (#3936) · 32527017
      Ian Hickson authored
      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.
      32527017
    • Ian Hickson's avatar
      Revert "Rename DefaultTextStyle constructor to explicit (#3920)" (#3930) · c5ff156f
      Ian Hickson authored
      This reverts commit 55f9145e.
      
      Turns out that this commit breaks apps that use the material library,
      because of the _errorTextStyle DefaultTextStyle which has inherit:true.
      Just setting it to false doesn't work, unfortunately, because then you
      hit some sort of issue with merging that text style with others that
      have inherit:true.
      c5ff156f
    • Adam Barth's avatar
      Rename DefaultTextStyle constructor to explicit (#3920) · 55f9145e
      Adam Barth authored
      To make it clear that this constructor requires an explicit style. Also
      throw a descriptive error recommending the inherit constructor for
      styles with the inherit bit set.
      
      Fixes #3842
      55f9145e
  3. 13 May, 2016 2 commits
  4. 12 May, 2016 3 commits
  5. 09 May, 2016 1 commit