1. 20 Oct, 2015 2 commits
  2. 16 Oct, 2015 1 commit
  3. 14 Oct, 2015 1 commit
    • Hans Muller's avatar
      Added Painter, ScrollingListPainter, MaterialScrollbarPainter · 921d4320
      Hans Muller authored
      Enabled displaying a scrollbar in ScrollingLists. The scrollbar is painted as an "overlay", i.e. it's painted on top of the scrolling list's visible children.
      
      Added an abstract Painter base class that encapsulates a paint method and the renderer that it's attached to. RenderBlockViewport and HomogenousViewport now support an overlayPainter property. If specified, RenderBlockViewport attaches itself to the overlayPainter when it's attached to the rendering tree. RenderBlockViewport now calls overlayPainter.paint() after it has painted its children.
      
      Added an abstract ScrollingListPainter class that exposes ScrollingList's state which might be needed for painting. Like its scroll direction and scrollOffset. The ScrollingListPainter is notified when a scroll starts and ends.
      
      Defined a Material-specific ScrollingListPainter that renders a scrollbar. The scrollbar thumb is faded in/out when the scroll starts/ends.
      
      Added onScrollStart and onScrollEnd listeners to Scrollable.
      921d4320
  4. 12 Oct, 2015 2 commits
  5. 10 Oct, 2015 3 commits
  6. 09 Oct, 2015 1 commit
  7. 06 Oct, 2015 1 commit
  8. 05 Oct, 2015 2 commits
  9. 03 Oct, 2015 1 commit
    • Adam Barth's avatar
      Simplify Scrollable animations · 49aba0cc
      Adam Barth authored
      Rather than having two objects driving scrolling animations, we now have one
      object, a Timeline, drive both scrollTo and fling animations. Using Timeline
      instead of AnimatedSimulation paves the way to removing AnimatedSimulation
      (which is now used only inside the animation library).
      
      Finally, this patch also simplifies (and makes private) _TweenSimulation by
      using AnimatedValue to do the math.
      49aba0cc
  10. 01 Oct, 2015 1 commit
  11. 30 Sep, 2015 1 commit
  12. 25 Sep, 2015 1 commit
  13. 22 Sep, 2015 2 commits
    • Hixie's avatar
      Fix scrolling of Block. · 59f7e7f0
      Hixie authored
      Since our build function depends on scrollBehavior.isScrollable, any
      time we update scrollBehavior we are implicitly updating our state. As
      such, we must do so during a setState() call, or else we won't rebuild
      and might not bother to listen to the scroll gestures.
      
      This probably broke when we made Block not listen to gestures if it
      wasn't overflowing.
      59f7e7f0
    • Adam Barth's avatar
      Remove uses of sky.GestureEvent · 12097bdd
      Adam Barth authored
      12097bdd
  14. 21 Sep, 2015 1 commit
    • Adam Barth's avatar
      Remove EventDisposition · 051354ae
      Adam Barth authored
      All the use cases for EventDisposition are now addressed by the gesture
      detection system.
      051354ae
  15. 17 Sep, 2015 1 commit
    • Adam Barth's avatar
      Create gestures.dart · 41b8ffd6
      Adam Barth authored
      This patch is part of a sequence of patches towards fewer top-level libraries.
      In this patch, the gesture libraries are combined into one gestures.dart
      library.
      41b8ffd6
  16. 16 Sep, 2015 2 commits
  17. 11 Sep, 2015 1 commit
  18. 10 Sep, 2015 2 commits
    • Adam Barth's avatar
      Fold fling gesture into onDragEnd · 63101e49
      Adam Barth authored
      That way the fling engages in the same direction as the scroll. For example, if
      you have a horizontal scroll nested inside a vertical scroll, the fling will
      take place in the same direction as the scroll.
      63101e49
    • Adam Barth's avatar
      Don't register gesture detectors when Scrollable can't scroll · 707d8606
      Adam Barth authored
      Previously, if you used a number of nested Blocks, they'd each try to register
      drag gesture detectors even though they can't actually scroll. This CL teaches
      Scrollable to watch for drag gestures only when it can actually scroll.
      707d8606
  19. 09 Sep, 2015 1 commit
    • Hans Muller's avatar
      Initial support for the fling gesture detector · 67410a5a
      Hans Muller authored
      Added FlingGestureRecognizer and exposed it in the GestureDetector class. FlingGestureRecognizer is based on the Android/Chromium VelocityTracker class which computes a velocity vector for for a list of X,Y,Time tuples.
      
      The Scrollable classes now use the FlingGestureRecognizer. Dismissable and Drawer still need to be updated
      67410a5a
  20. 08 Sep, 2015 1 commit
    • Adam Barth's avatar
      Introduce package:sky/animation.dart · b356d146
      Adam Barth authored
      Move the animation libraries into src/animation and change importers to use
      package:sky/animation.dart. Also, move scheduler.dart into the animation
      library so that the animation library can be self-contained.
      b356d146
  21. 04 Sep, 2015 1 commit
  22. 02 Sep, 2015 4 commits
  23. 31 Aug, 2015 1 commit
    • Hixie's avatar
      Remove the inner SizeObserver from ScrollableWidgetList. · 820137b7
      Hixie authored
      Adds a HomogeneousViewport class that works like MixedViewport but
      handles only children that have all the same height.
      
      Converts ScrollableWidgetList to use that, so that we don't waste a
      frame looking at the size of the contents each time we change size.
      
      This allows a number of seemingly pointless double-pumps in the tests
      to be removed.
      
      Other changes that were necessary to support the above:
      
       - RenderBlock now supports minExtent (think 'min-height' in CSS)
       - RenderBlock now supports itemExtent (forces the height of each
         child to be the same, so that the itemExtent passed to the fixed-
         height scrollables are all authoritative instead of a source of
         bugs when they don't match)
       - RenderBlockViewport now supports horizontal scrolling
       - improved the style of the isInfinite assert in box.dart
       - fixed the position of a comment in mixed_viewport.dart
       - added a test
       - made the logic for how many items to show be more precise
      820137b7
  24. 29 Aug, 2015 1 commit
  25. 28 Aug, 2015 4 commits
  26. 27 Aug, 2015 1 commit