1. 06 May, 2017 1 commit
  2. 05 May, 2017 2 commits
  3. 03 May, 2017 2 commits
  4. 02 May, 2017 2 commits
    • Adam Barth's avatar
    • Ian Hickson's avatar
      Flush microtasks after transient callbacks are run. (#9702) · e8c46927
      Ian Hickson authored
      This splits the frame pipeline into two, beginFrame and drawFrame.
      
      As part of making this change I added some debugging hooks that helped
      debug the issues that came up:
      
       * I added debugPrintScheduleFrameStacks which prints a stack whenever
         a frame is actually scheduled, so you can see why frames are being
         scheduled.
      
       * I added some toString output to EditableText and RawKeyboardListener.
      
       * I added a scheduler_tester.dart library for scheduler library tests.
      
       * I changed the test framework to flush microtasks before pumping.
      
       * Some asserts that had the old string literal form were replaced by
         asserts with messages.
      
      I also fixed a few subtle bugs that this uncovered:
      
       * setState() now calls `ensureVisualUpdate`, rather than
         `scheduleFrame`. This means that calling it from an
         AnimationController callback does not actually schedule an extra
         redundant frame as it used to.
      
       * I corrected some documentation.
      e8c46927
  5. 24 Apr, 2017 1 commit
    • Adam Barth's avatar
      FocusNode.requestFocus should show the keyboard (#9558) · 55f33468
      Adam Barth authored
      This patch introduces the notion of a keyboard token, which generalizes the
      logic in EditableText for distinguishing between gaining focus by default and
      gaining focus because of an explicit use action.
      
      Fixes #7985
      55f33468
  6. 19 Apr, 2017 1 commit
  7. 18 Apr, 2017 1 commit
  8. 14 Apr, 2017 1 commit
  9. 13 Apr, 2017 1 commit
  10. 12 Apr, 2017 2 commits
    • Ian Hickson's avatar
      Move Point to Offset (#9277) · bf017b79
      Ian Hickson authored
      * Manually fix every use of Point.x and Point.y
      
      Some of these were moved to dx/dy, but not all.
      
      * Manually convert uses of the old gradient API
      
      * Remove old reference to Point.
      
      * Mechanical changes
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]origin\b/Offset.zero/g'
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]lerp\b/Offset.lerp/g'
      git ls-files -z | xargs -0 sed -i 's/\bnew Point\b/new Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bconst Point\b/const Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bstatic Point /static Offset /g'
      git ls-files -z | xargs -0 sed -i 's/\bfinal Point /final Offset /g'
      git ls-files -z | xargs -0 sed -i 's/^\( *\)Point /\1Offset /g'
      git ls-files -z | xargs -0 sed -i 's/ui[.]Point\b/ui.Offset/g'
      git ls-files -z | xargs -0 sed -i 's/(Point\b/(Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\([[{,]\) Point\b/\1 Offset/g'
      git ls-files -z | xargs -0 sed -i 's/@required Point\b/@required Offset/g'
      git ls-files -z | xargs -0 sed -i 's/<Point>/<Offset>/g'
      git ls-files -z | xargs -0 sed -i 's/[.]toOffset()//g'
      git ls-files -z | xargs -0 sed -i 's/[.]toPoint()//g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point, /show /g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point;/show Offset;/g'
      
      * Mechanical changes - dartdocs
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\ba \[Point\]/an [Offset]/g'
      git ls-files -z | xargs -0 sed -i 's/\[Point\]/[Offset]/g'
      
      * Further improvements and a test
      
      * Fix minor errors from rebasing...
      
      * Roll engine
      bf017b79
    • Ian Hickson's avatar
      Fix tests to use Ahem, and helpful changes around that (#9332) · 2a545243
      Ian Hickson authored
      * Fix tests to use Ahem, and helpful changes around that
      
      - Fix fonts that had metric-specific behaviours.
      
      - LiveTestWidgetsFlutterBinding.allowAllFrames has been renamed
        to LiveTestWidgetsFlutterBinding.framePolicy.
      
      - LiveTestWidgetsFlutterBinding now defaults to using a frame policy
        that pumps slightly more frames, to animate the pointer crosshairs.
      
      - Added "flutter run --use-test-fonts" to enable Ahem on devices.
      
      - Changed how idle() works to be more effective in live mode.
      
      - Display the test name in live mode (unless ahem fonts are enabled).
      
      - Added a toString to TextSelectionPoint.
      
      - Style nit fixes.
      
      * Roll engine to get Ahem changes.
      
      * Update tests for dartdoc changes.
      
      * Fix flutter_tools tests
      2a545243
  11. 11 Apr, 2017 1 commit
    • xster's avatar
      Rename State.config to widget everywhere (#9273) · 89a7fdfc
      xster authored
      Rename State.config to State.widget
      Rename State.didUpdateConfig to State.didUpdateWidget
      Renamed all State subclasses' local variables named config to something else
      89a7fdfc
  12. 07 Apr, 2017 1 commit
  13. 05 Apr, 2017 1 commit
  14. 02 Apr, 2017 1 commit
  15. 31 Mar, 2017 1 commit
  16. 30 Mar, 2017 1 commit
  17. 29 Mar, 2017 1 commit
  18. 21 Mar, 2017 1 commit
  19. 20 Mar, 2017 1 commit
  20. 17 Mar, 2017 2 commits
    • Adam Barth's avatar
      Rename ImageFit to BoxFit (#8871) · 5cf04b61
      Adam Barth authored
      This machinery is useful for arbitrary boxes (e.g., with FittedBox).
      
      Fixes #6463
      5cf04b61
    • Mikkel Nygaard Ravn's avatar
      Remove old platform messaging API (#8837) · dce4bf85
      Mikkel Nygaard Ravn authored
      Breaking change: removed deprecated methods of PlatformMessages, leaving only binary messaging there. All other use of platform communication now goes through PlatformMessageChannel and PlatformMethodChannels. Retained use of String and JSON codecs for now.
      
      Companion engine PR: flutter/engine#3482
      dce4bf85
  21. 15 Mar, 2017 2 commits
  22. 13 Mar, 2017 1 commit
  23. 10 Mar, 2017 2 commits
  24. 08 Mar, 2017 2 commits
  25. 04 Mar, 2017 1 commit
  26. 23 Feb, 2017 2 commits
    • Phil Quitslund's avatar
      Bump to test `0.12.20`. (#8349) · a002e720
      Phil Quitslund authored
      * Bump to test `0.12.20`.
      
      Some test `0.12.20` highlights:
        * introduces `expectLater()`  that returns a `Future` that completes when the matcher has finished running
        * deprecates the `verbose` parameter to `expect()` and the `formatFailure()` (to be removed in `0.13.0`)
      
      Otherwise:
        * to keep up w/ the deprecation of `verbose`, removes `widget_tester` API to pass `verbose` flag (alternatively we could suppress the warning for now)
      
      * Update stack manipulation.
      
      * Fix framecount.
      a002e720
    • Alexandre Ardhuin's avatar
      8c043d06
  27. 21 Feb, 2017 1 commit
  28. 18 Feb, 2017 1 commit
  29. 15 Feb, 2017 1 commit
  30. 14 Feb, 2017 1 commit
  31. 08 Feb, 2017 1 commit