1. 29 Jul, 2016 1 commit
  2. 26 Jul, 2016 1 commit
  3. 06 Jun, 2016 1 commit
  4. 20 May, 2016 1 commit
  5. 03 May, 2016 1 commit
  6. 27 Apr, 2016 1 commit
  7. 12 Apr, 2016 1 commit
  8. 14 Mar, 2016 1 commit
  9. 12 Mar, 2016 1 commit
  10. 07 Mar, 2016 1 commit
  11. 25 Feb, 2016 1 commit
    • Hixie's avatar
      Remove size observers from scrollables. · f8080557
      Hixie authored
      Also:
       - add operator==/hashCode/toString to ViewportDimensions
       - add toString to BindingBase
       - add toString and debugFillDescription to ScrollBehavior
       - fix a bug in the RawGestureDetectorState's replaceGestureRecognizers
       - rename MixedViewport's onExtentsUpdate to onExtentChanged
       - replace ExtentsUpdateCallback with ValueChanged<double>
       - remove a microtask for dispatching scroll start, since it
         did not appear to have any purpose
       - added dartdocs to Instrumentation until I understood it
       - made all event dispatch in Instrumentation drain microtasks
      f8080557
  12. 23 Feb, 2016 1 commit
    • Hixie's avatar
      Clean up scroll behaviour. · 98d47c35
      Hixie authored
      This makes ScrollBehavior agnostic about the kind of scroll.
      This also means ExtentScrollBehavior's comment about being linear is
      more relevant (previously it was true of all scroll behaviours).
      98d47c35
  13. 10 Feb, 2016 1 commit
  14. 21 Jan, 2016 1 commit
  15. 10 Dec, 2015 1 commit
  16. 09 Dec, 2015 2 commits
  17. 28 Oct, 2015 1 commit
  18. 10 Oct, 2015 2 commits
  19. 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
  20. 22 Sep, 2015 3 commits
  21. 10 Sep, 2015 1 commit
  22. 08 Sep, 2015 2 commits
  23. 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
  24. 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
  25. 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
  26. 30 Jul, 2015 1 commit
  27. 28 Jul, 2015 2 commits
  28. 27 Jul, 2015 1 commit
  29. 16 Jul, 2015 2 commits