1. 10 Dec, 2015 1 commit
  2. 09 Dec, 2015 2 commits
  3. 28 Oct, 2015 1 commit
  4. 10 Oct, 2015 2 commits
  5. 29 Sep, 2015 2 commits
    • Hans Muller's avatar
    • Hans Muller's avatar
      SnapOffsets for fling Scrolling · 7385641f
      Hans Muller authored
      Initial snap offset support for ScrollableWidgetList (and ScrollableList<T>) and ScrollableMixedWidgetList. If a ```toSnapOffset(scrollOffset)``` function is provided, fling Scrolls will coast to the returned value. If ```alignmentOffset``` is specified then fling scrolls conclude when toSnapOffset's value lines up with the Scrollable widget's origin + alignmentOffset. For example if the Scrollable widget's height was 200.0, and alignmentOffset:100.0 was specified, then fling scrolls would end with the value returned by toSnapOffset() lined up with the center of the Scrollable.
      
      This approach to Scrollable snapping assumes that the layout of whatever the Scrollable contains is known at the outset. This is often true however a ScrollableMixedWidgetList may not know its items' sizes until they've been reached by scrolling.
      
      This is a first cut at snapping support. Among the things that remain to be done:
      - Scrolling limits trump snapping. Snapping should probably trump scrolling limits.
      - Drag scrolls aren't snapped. This may be desirable so perhaps the feature should be controlled with a flag.
      - Specifying alignmentOffset as a percentage would probably be more convenient.
      - It would be nice if one could wrap items in a SnapOffset value like: ```new SnapOffset(0.5, child: myItem)``` to snap to the center of the item.
      
      Updated the CardCollection example: snapping and fixed size items can be turned on/off with Drawer checkboxes.
      7385641f
  6. 22 Sep, 2015 3 commits
  7. 10 Sep, 2015 1 commit
  8. 08 Sep, 2015 2 commits
  9. 24 Aug, 2015 1 commit
    • Hans Muller's avatar
      Support ScrollableLists that wrap · c21fcf62
      Hans Muller authored
      Adds itemsWrap:bool (default false) to ScrollableList and PageableList. If itemsWrap is true then scrolling past the last item wraps around to the first. Similarly, scrolling before the first item wraps around to the last.
      
      Added abstract ExtentScrollBehavior of ScrollBehavior. Renamed fields called contentsExtents to contentExtent, containerExtents to containerExtent, contentSize to contentExtent, etc.
      
      BoundedBehavior is now a subclass of ExtentScrollBehavior.
      
      Added UnboundedBehavior subclass of ExtentScrollBehvaior; contentExtent and maxScrollOffset are double.INFINITY, minScrollExtent is double.NEGATIVE_INFINITY.
      c21fcf62
  10. 22 Aug, 2015 1 commit
    • Adam Barth's avatar
      Cleanup how we manage scrollOffset in Scrollable · d3eaff27
      Adam Barth authored
       - Introduce _setScrollOffset as a backend for the animations so that scrollTo
         can stop animations.
      
       - Create a single function that stops both kinds of scroll animations.
      
       - Refactor how we update the bounds for bounded scroll behaviors so that we
         update the bounds and compute the new scroll offset at the same time.
      d3eaff27
  11. 03 Aug, 2015 1 commit
    • Adam Barth's avatar
      ScrollableBlock should be able to overscroll · 98a2c9b0
      Adam Barth authored
      When a ScrollableBlock can scroll, we want to be able to drag into the
      overscroll region. Previously we could fling into the overscroll region, but we
      couldn't actually drag there.
      98a2c9b0
  12. 30 Jul, 2015 1 commit
  13. 28 Jul, 2015 2 commits
  14. 27 Jul, 2015 1 commit
  15. 16 Jul, 2015 2 commits