1. 10 Nov, 2015 1 commit
  2. 05 Nov, 2015 1 commit
    • Hixie's avatar
      Make Draggable use gestures · 255ed0b9
      Hixie authored
      Draggable is now itself a gesture arena member. This means it won't
      conflict with other gesture recognisers in the same path.
      
      This also allows variants of Draggable that are triggered by other
      gestures.
      
      Also, some cleanup of DoubleTapGestureRecognizer, GestureDetector, and
      PrimaryPointerGestureRecognizer.
      
      Also, make MultiTapGestureRecognizer support a timeout for longpress.
      
      Also, make Draggable data be typed.
      
      Also, hide warnings about constructor warnings for now. Analyzer doesn't
      support them yet. (Have to do this on a per-line basis)
      
      Directions for future research:
       - animating the avatar (enter/exit transitions)
       - interaction with the navigator (canceling a drag on page navigation, etc)
       - double-tap draggable
      255ed0b9
  3. 03 Nov, 2015 1 commit
    • Adam Barth's avatar
      Stocks list doesn't update when stocks are loaded · 78d35391
      Adam Barth authored
      Previously, we passed widgets up the hierarchy to display them in the overlay,
      but that breaks the change propagation logic because those widgets won't get
      rebuilt.  Now we pass WidgetBuilders instead, which can be rebuilt when the
      overlay rebuilds.
      
      Fixes #1913
      78d35391
  4. 30 Oct, 2015 2 commits
  5. 27 Oct, 2015 2 commits
    • Ian Hickson's avatar
      Track scroll position · 8a900f90
      Ian Hickson authored
      - Change RouteArguments to pass the route's BuildContext rather than
        the Navigator. This caused the bulk of the examples/ and .../test/
        changes (those are mostly mechanical changes). It also meant I could
        simplify Navigator.of().
      
      - Make initState() actually get called when the State's Element is in
        the tree, so you can use Foo.of() functions there. Added a test for
        this also.
      
      - Provide a RouteWidget so that routes have a position in the Widget
        tree. The bulk of the route logic is still in a longer-lived Route
        object for now.
      
      - Make Route.setState() only rebuild the actual route, not the whole
        navigator.
      
      - Provided a Route.of().
      
      - Provided a Route.writeState / Route.readState API that tries to
        identify the clients by their runtimeType, their key, and their
        ancestors keys, up to the nearest ancestor with a GlobalKey.
      
      - Made scrollables hook into this API to track state. Added a test to
        make sure this works.
      
      - Fix the debug output of GestureDetector and the hashCode of
        MixedViewport.
      
      - Fixed ScrollableWidgetListState<T> to handle infinite lists.
      8a900f90
    • Adam Barth's avatar
      Use VoidCallback in more places · e77cad81
      Adam Barth authored
      We still use special-purpose typedefs in the gesture code for symmetry with
      other gesture callbacks.
      
      Fixes #1827
      e77cad81
  6. 21 Oct, 2015 1 commit
    • Hixie's avatar
      Make Route.build() arguments match RouteBuilder() · babba2f0
      Hixie authored
      Assert at build time that PageRoute route builders do not return null
      widget trees.
      
      Also very minor new code comments and code reorg to help make the heroes
      patch easier to review.
      
      (These are changes that are unrelated to Heroes but that were part of
      the Heroes patch.)
      babba2f0
  7. 16 Oct, 2015 1 commit
  8. 13 Oct, 2015 1 commit
  9. 10 Oct, 2015 3 commits
  10. 09 Oct, 2015 1 commit
  11. 07 Oct, 2015 1 commit
  12. 06 Oct, 2015 1 commit
  13. 05 Oct, 2015 1 commit
  14. 03 Oct, 2015 1 commit
  15. 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
  16. 01 Oct, 2015 2 commits
    • Hixie's avatar
      Heroes: Pass next Performance to route builders · 8cce992f
      Hixie authored
      This is step 1 in making it possible to have hero transitions between
      routes. To make it possible for a route to have an "exit" animation when
      a new route has been pushed on top of it, we provide the next route's
      AnimationPerformance to the build function. It's null if there is no
      next route or if the next route has no performance.
      8cce992f
    • Adam Barth's avatar
      Make fn3 the default widget framework · 45c906d2
      Adam Barth authored
      45c906d2
  17. 26 Sep, 2015 1 commit
  18. 08 Sep, 2015 1 commit
  19. 02 Sep, 2015 1 commit
    • Adam Barth's avatar
      Move widgets and rendering inside src · 693ddcd8
      Adam Barth authored
      Code outside of package:sky should import this code using
      
      package:sky/rendering.dart
      package:sky/widgets.dart
      
      Moving this code into the "src" directory is a convention that signifies that
      and it cleans up the generated dartdoc because the libraries in the src
      directory aren't included in the generated documentation. Instead, the classes
      are documented in the widgets.dart and rendering.dart libraries.
      693ddcd8
  20. 27 Aug, 2015 1 commit
    • Adam Barth's avatar
      Add PointerRouter · 45f2c589
      Adam Barth authored
      This patch is the first step towards implementing gestures. The pointer router
      allows the gesture detectors to hook in at the end of the pointer event
      propagation chain.
      
      Related to #145
      45f2c589
  21. 22 Aug, 2015 1 commit
  22. 17 Aug, 2015 1 commit
    • Adam Barth's avatar
      Add support for drag-and-drop · ac0ec322
      Adam Barth authored
      Widgets that want to receive drops should include a DropTarget in their build.
      Currently there's no widget for initiating a drag. Components can use the
      DragController directly. In the future, we'll probably want to add a Draggable
      that knows how to do some of this work automatically.
      
      Fixes #612
      ac0ec322