1. 22 Jul, 2016 2 commits
    • Adam Barth's avatar
      Improve compositing strategy for Shrine (#5014) · 39e75921
      Adam Barth authored
      This patch includes a number of improvements:
      
       * Material page routes now put a repaint boundary inside their transition so
         they don't repaint during the transition.
       * Heroes that are on a quest now get a repaint boundary so we repaint them
         individually.
       * I've hoisted the transparent material for the product items up in the widget
         tree, which doesn't affect performance but makes the ink splashes reach the
         edge of the product cards.
       * I've changed the repaint rainbow visualization to make it easier to see
         what's going on.
      39e75921
    • Adam Barth's avatar
      Hint that painting shadows are complex (#5000) · 1a292ff6
      Adam Barth authored
      Previously, we considered them one operation in the compositor, which didn't
      trigger caching. Now we have a way to explicitly hint that the compositor
      should cache a layer.
      1a292ff6
  2. 07 Jul, 2016 1 commit
  3. 04 Jul, 2016 1 commit
  4. 02 Jul, 2016 1 commit
  5. 01 Jul, 2016 2 commits
    • Adam Barth's avatar
      Add semantics for Sliders (#4808) · 5ed8f1a1
      Adam Barth authored
      Also, make SemanticsOwner into a real class and use it instead of a static in
      several places.
      5ed8f1a1
    • Adam Barth's avatar
      Update use of `@protected` (#4805) · 8c535ad7
      Adam Barth authored
      Now that protected can be accessed from inside the same library, we can
      use protected in a number of new places and we can remove some
      trampolines we were using to work around its previous semantics.
      8c535ad7
  6. 28 Jun, 2016 1 commit
    • pq's avatar
      Cleanup empty statements. · 543f705a
      pq authored
      The new `empty_statements` lint (in the next DEV roll), flags these empty statements.  Harmless, except the one in `basic.dart` that fixes a real-life bug. :)
      543f705a
  7. 16 Jun, 2016 1 commit
  8. 09 Jun, 2016 1 commit
  9. 08 Jun, 2016 1 commit
  10. 06 Jun, 2016 1 commit
  11. 01 Jun, 2016 3 commits
    • Ian Hickson's avatar
      PaginatedDataTable (part 1) (#4306) · 0618da7c
      Ian Hickson authored
      This introduces the key parts of a paginated data table, not including
      the built-in pagination features.
      
      * Provide more data for the data table demo, so there's data to page.
      
      * Introduce a ChangeNotifier class which abstracts out
        addListener/removeListener/notifyListeners. We might be able to use
        this to simplify existing classes as well, though this patch doesn't
        do that.
      
      * Introduce DataTableSource, a delegate for getting data for data
        tables. This will also be used by ScrollingDataTable in due course.
      
      * Introduce PaginatedDataTable, a widget that wraps DataTable and only
        shows N rows at a time, fed by a DataTableSource.
      0618da7c
    • Adam Barth's avatar
      020b0688
    • Adam Barth's avatar
      Start using protected annotation (#4288) · 887e3396
      Adam Barth authored
      There are many more places we can use this annotation. This patch starts out
      small to test the waters.
      887e3396
  12. 30 May, 2016 1 commit
  13. 29 May, 2016 1 commit
    • Adam Barth's avatar
      Remove OverlayPainter mechanism (#4264) · 76772608
      Adam Barth authored
      We used to use this mechanism to paint scrollbars, but it's awkward. The
      new approach to scrollbars is much cleaner. This mechanism has no other
      clients, so we should remove it.
      76772608
  14. 27 May, 2016 1 commit
  15. 26 May, 2016 1 commit
  16. 25 May, 2016 1 commit
  17. 18 May, 2016 1 commit
  18. 16 May, 2016 1 commit
    • 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
  19. 12 May, 2016 1 commit
  20. 03 May, 2016 1 commit
  21. 22 Apr, 2016 2 commits
  22. 19 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Refactor service extensions (#3397) · 261923e5
      Ian Hickson authored
      Bindings now have a debugRegisterServiceExtensions() method that is
      invoked in debug mode (only). (Once we have a profile mode, there'll be
      a registerProfileServiceExtensions() method that gets called in that
      mode only to register extensions that apply then.)
      
      The BindingBase class provides convenience methods for registering
      service extensions that do the equivalent of:
      
      ```dart
      void extension() { ... }
      bool extension([bool enabled]) { ... }
      double extension([double extension])  { ... }
      Map<String, String> extension([Map<String, String> parameters]) { ... }
      ```
      
      The BindingBase class also itself registers ext.flutter.reassemble,
      which it has call a function on the binding called
      reassembleApplication().
      
      The Scheduler binding now exposes the preexisting
      ext.flutter.timeDilation.
      
      The Renderer binding now exposes the preexisting ext.flutter.debugPaint.
      
      The Renderer binding hooks reassembleApplication to trigger the
      rendering tree to be reprocessed (in particular, to fix up the
      optimisation closures).
      
      All the logic from rendering/debug.dart about service extensions is
      replaced by the above.
      
      I moved basic_types to foundation.
      
      The FlutterWidgets binding hooks reassembleApplication to trigger the
      widget tree to be entirely rebuilt.
      
      Flutter Driver now uses ext.flutter.driver instead of
      ext.flutter_driver, and is hooked using the same binding mechanism.
      Eventually we'll probably move the logic into the Flutter library so
      that you just get it without having to invoke a special method first.
      261923e5
  23. 15 Apr, 2016 2 commits
    • Ian Hickson's avatar
      Use the same logic in flushPaint as flushLayout (#3353) · d348f28d
      Ian Hickson authored
      If two repaint boundaries mark themselves dirty, but the second one is a
      child of the first, then the second one will get repainted by the first
      and then when we come to paint it directly, we get confused because it
      isn't dirty any more.
      
      We ran into this in layout before. Apply the same fix. Also, apply the
      same fix to composition while we're at it.
      d348f28d
    • Ian Hickson's avatar
      Split services/ into services/ and foundation/ (#3350) · e41c1c0b
      Ian Hickson authored
      We're getting back to the point where we have a bunch of foundation APIs
      and it's getting confusing having them mixed with services/.
      e41c1c0b
  24. 12 Apr, 2016 1 commit
  25. 11 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Add even more careful checks around BoxConstraints (#3243) · 47f5c6f2
      Ian Hickson authored
      I ran into a case where I was setting minHeight=∞ and then calling
      layout() with that constraint, which is all kinds of bad. To try to
      catch this earlier, this patch now provides a way to catch constraints
      that are requiring infinite values.
      
      We don't _always_ check this because there are valid uses for
      BoxConstraints.biggest, e.g. as an additionalConstraint.
      47f5c6f2
  26. 06 Apr, 2016 1 commit
  27. 05 Apr, 2016 1 commit
  28. 03 Apr, 2016 1 commit
  29. 02 Apr, 2016 2 commits
    • Ian Hickson's avatar
      Rationalise all our exception handling. · ee703da9
      Ian Hickson authored
      - Create a FlutterErrorDetails struct-like class that describes an
      
        exception along with more details that aren't in the exception, like
      
        where it was caught and what was going on when it was caught.
      
      
      
      - Provide a FlutterError static API for handling these objects:
      
      
      
        - FlutterError.onError which is called whenever Flutter catches an
      
          error.
      
      
      
        - FlutterError.reportError() which handles an error.
      
      
      
        - FlutterError.dumpErrorToConsole() which is the default behavior
      
          for onError.
      
      
      
      - Removes all the existing exception handler callbacks.
      
      
      
      - Replaces all the existing places that described exceptions using
      
        debugPrint with calls to FlutterError.reportError().
      
      
      
      - Extend lockState() to also catch exceptions, so that we catch
      
        exceptions that happen during finalizers.
      
      
      
      - Make the test framework catch errors and treat them as failures.
      
      
      
      - Provide a mechanism to override this behavior in the test framework.
      
      
      
      - Make the tests that used to depend on the exception handler
      
        callbacks use this new mechanism.
      
      
      
      - Make pump() also support the phase argument.
      
      
      
      - Improve some tests using these new features.
      
      
      
      Fixes #2356, #2988, #2985, #2220.
      ee703da9
    • Adam Barth's avatar
      Add support for backdrop filters · 665ac49b
      Adam Barth authored
      For example, to implement backdrop blur effects.
      665ac49b
  30. 01 Apr, 2016 1 commit
    • Adam Barth's avatar
      Capture closures around megamorphic dispatches · 622bec43
      Adam Barth authored
      The performLayout and build callsite are highly megamorphic because they
      dispatch into a large number of clients. However, for a given caller, the
      callee is always of the same type, which means the megamorphic lookup exactly
      factors by the caller. We can speed up the dispatch by capturing a closure at
      initialization and then monomorphically dispatching through the closure.
      622bec43
  31. 29 Mar, 2016 1 commit
    • Ian Hickson's avatar
      More elaborate exceptions. · aedf41bf
      Ian Hickson authored
      The elaboration will continue until morale improves.
      
      Specific exceptions considered here:
      
       - size setter checking when you set the size
       - layout verifying that you do set the size
       - hitTest verifying that you aren't dirty and have a size
       - flex complaining about canFlex
      aedf41bf
  32. 28 Mar, 2016 2 commits