1. 01 Feb, 2018 1 commit
  2. 11 Jan, 2018 1 commit
  3. 14 Dec, 2017 1 commit
  4. 14 Nov, 2017 1 commit
    • Jeff McGlynn's avatar
      PageView ballistics overshoot the page on some devices (#12884) · 473d75a6
      Jeff McGlynn authored
      * PageView ballistics overshoot the page on some devices
      
      On some devices, such as Cupertino “Plus”-sized devices, scrolling left on the first page of a PageView will overshoot the first page and land on the second page.
      
      The issue is that applyContentDimensions incorrectly detects a content size change due to a floating point comparison on certain screen sizes (18257.400000000005 vs 18257.4)
      
      To fix this, perform a nearEqual comparison in applyContentDimensions.
      
      * Apply style changes to nearEqual for code review feedback.
      473d75a6
  5. 25 Oct, 2017 1 commit
    • Jeff McGlynn's avatar
      Add a pageSnapping parameter to PageView (#12596) · 021a2688
      Jeff McGlynn authored
      * Add a pageSnapping parameter to PageView
      
      Setting the pageSnapping property allows extending the PageView scroll
      behavior, such as custom scroll animations or custom scroll bars.
      
      * Apply pageSnapping CR feedback
      
      - Remove _kNonSnappingPhysics, use null instead.
      - Minor code style fixes.
      - It turns out that the forth state is Arkansas, not California.
      021a2688
  6. 06 Oct, 2017 1 commit
    • Iiro Krankka's avatar
      Change PageController#nextPage & #previousPage methods to return Future when... · 0a85db29
      Iiro Krankka authored
      Change PageController#nextPage & #previousPage methods to return Future when the animation completes. (#12299)
      
      * Changed PageController #nextPage & #previousPage to return a Future after completing.
      
      * Removed false statement about returning a Future in PageController#jumpToPage
      
      * Added tests to make sure nextPage & previousPage return Futures.
      
      * Tested that the Futures returned by nextPage & previousPage actually resolve.
      
      * Renaming *pageCalled to *pageCompleted, since that's what it's actually for.
      0a85db29
  7. 04 Oct, 2017 1 commit
  8. 31 Aug, 2017 1 commit
  9. 27 Jul, 2017 1 commit
    • Ian Hickson's avatar
      Increase the touch slop. (#11419) · 87445e59
      Ian Hickson authored
      It was 8.0. It's now arbitrarily 18.0.
      
      Changing this required adjusting some tests. Adjusting the tests
      required debugging the tests. Debugging the tests required some tools
      to help debugging gesture recognizers and gesture arenas, so I added
      some. It also required updating some toString() methods which resulted
      in some changes to the tree diagnostics logic.
      
      Also I cleaned up some docs while I was at it.
      87445e59
  10. 06 Jul, 2017 1 commit
    • xster's avatar
      Match non-linear overscroll spring to iOS (#11065) · 47c4d64f
      xster authored
      * Make the drag resistance non-linear
      
      * Let the easing of overscroll have a spring effect too
      
      * Add tests and prevent possible drift by having a slightly smaller resistance when easing the overscroll
      
      * lint
      47c4d64f
  11. 12 Jun, 2017 1 commit
  12. 09 Jun, 2017 1 commit
  13. 08 Jun, 2017 1 commit
  14. 06 Jun, 2017 1 commit
  15. 09 May, 2017 1 commit
  16. 27 Apr, 2017 1 commit
  17. 12 Apr, 2017 1 commit
    • 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
  18. 05 Apr, 2017 1 commit
  19. 15 Mar, 2017 1 commit
  20. 13 Mar, 2017 1 commit
  21. 05 Mar, 2017 1 commit
  22. 04 Mar, 2017 1 commit
  23. 03 Mar, 2017 1 commit
  24. 21 Feb, 2017 1 commit
    • Adam Barth's avatar
      Call onPageChanged at the halfway mark (#8302) · 862fc051
      Adam Barth authored
      Previously we called onPageChanged when the scroll ended, but that is too late.
      Now we call onPageChanged when we cross the halfway mark, which, for example,
      makes the tab indicator update earlier.
      
      Fixes #8265
      862fc051
  25. 19 Feb, 2017 1 commit
    • Adam Barth's avatar
      PageView should be able to resize from zero (#8286) · df149c0b
      Adam Barth authored
      When resizing a PageView from 0x0, we weren't sure what the old page
      number was because all the pages are collapsed at zero. Now we avoid the
      divide by zero and default to the initialPage.
      
      Fixes #8285
      df149c0b
  26. 18 Feb, 2017 1 commit
  27. 08 Feb, 2017 1 commit
  28. 07 Feb, 2017 1 commit
    • Adam Barth's avatar
      Add PageController (#7948) · 2eb4f2c3
      Adam Barth authored
      This patch improves PageView to the point where we can use it in the date
      picker. Specifically, you now get onPageChanged notifications and you can
      control which page is visible using a PageController.
      2eb4f2c3
  29. 04 Feb, 2017 1 commit
  30. 03 Feb, 2017 1 commit
    • Adam Barth's avatar
      Add PageView (#7809) · 32314657
      Adam Barth authored
      This widget is a start towards replacing PageableList. There are still a number
      of features that we'll need to add before this widget can replace PageableList.
      32314657