1. 02 Oct, 2015 1 commit
    • Hixie's avatar
      Draggable offsets and fix default drag feedback · 894a1ca0
      Hixie authored
      You can now set an offset that will be used for the hit testing for
      drops. (It doesn't move the feedback by default; use a Transform for
      that.) I also made the default feedback not be Opacity 0.5 always.
      894a1ca0
  2. 01 Oct, 2015 3 commits
  3. 30 Sep, 2015 3 commits
  4. 29 Sep, 2015 1 commit
    • 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
  5. 26 Sep, 2015 2 commits
  6. 25 Sep, 2015 2 commits
  7. 24 Sep, 2015 5 commits
  8. 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
  9. 18 Sep, 2015 2 commits
  10. 17 Sep, 2015 3 commits
  11. 16 Sep, 2015 2 commits
  12. 14 Sep, 2015 1 commit
  13. 11 Sep, 2015 1 commit
  14. 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
  15. 05 Sep, 2015 1 commit
    • Adam Barth's avatar
      Document and bring sanity to BoxConstraints · 95277953
      Adam Barth authored
      Turns out many of the functions on BoxConstraints weren't used or had callers
      that could easily be updated to other functions. I've added dartdoc to all the
      public functions as well as renamed some functions that had similar names but
      did different things.
      95277953
  16. 04 Sep, 2015 2 commits
    • Hans Muller's avatar
      Add Dismissable unit tests · b02531a9
      Hans Muller authored
      b02531a9
    • Hans Muller's avatar
      Add Dismissable support for DismissDirection · 4e01c054
      Hans Muller authored
      ```
      enum DismissDirection {
        vertical,
        horizontal,
        left,
        right,
        up,
        down
      }
      ```
      
      To only enable dismissing to the right create the `Dismissable` with `direction: DismissDirection.right`. By default direction is `DismissDirection.horizontal` (left or right).
      
      Updated the card_collection "Swipe Away" demo with a drawer that can be used to select one of the three X axis dismiss directions. Currently the MixedViewport class doesn't support horizontal scrolling, so the demo doesn't support the X axis dismiss directions.
      4e01c054
  17. 03 Sep, 2015 1 commit
  18. 02 Sep, 2015 1 commit
  19. 31 Aug, 2015 1 commit
  20. 28 Aug, 2015 2 commits
    • Hixie's avatar
      Rationalise the Key API. · 9047830c
      Hixie authored
      Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class.
      Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
      9047830c
    • Adam Barth's avatar
      Use GestureDetector in the framework and examples · dc84e882
      Adam Barth authored
      We're now using it at the widget layer for everything except scrolling and
      flinging.
      dc84e882
  21. 26 Aug, 2015 2 commits
  22. 25 Aug, 2015 1 commit
  23. 24 Aug, 2015 1 commit