1. 20 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Reset _simulation at the end of a fling (#3435) · 112f2cc3
      Ian Hickson authored
      Also a bit of code cleanup.
      
      The key part of this patch is the addition in `_endScroll` to reset
      `_simulation`. It seems like this was the one place where it's possible
      for us to end the animation but not reset our state. Since we assert
      that are state is coherent, we were hitting asserts when a fling
      finished and then you interacted with the widget again.
      112f2cc3
  2. 13 Apr, 2016 1 commit
  3. 06 Apr, 2016 2 commits
  4. 31 Mar, 2016 1 commit
  5. 27 Mar, 2016 2 commits
  6. 23 Mar, 2016 1 commit
    • Adam Barth's avatar
      Scrollable physics should be reasonable when sizes change · f7f1259b
      Adam Barth authored
      Previously, when the content extent changed during a scroll interaction, we'd
      stop the current scroll interaction and reset the scroll offset. Now we try to
      continue the scroll interaction (e.g., drag, fling, or overscroll) even through
      the underlying scroll behavior has changed.
      
      For physics-based scroll interactions, we keep the current position and
      velocity and recompute the operative forces. For drag interactions, we keep the
      current position and continue to let the user drag the scroll offset.
      
      After this patch, we still disrupt non-physical scroll animations that are
      operating outside the new scroll bounds because it's not clear how we can
      sensibly modify them to work with the new scroll bounds.
      f7f1259b
  7. 21 Mar, 2016 1 commit
    • Ian Hickson's avatar
      Provide more documentation for MojoShell · bef6ff3b
      Ian Hickson authored
      As usual, as I was doing this I ran into some stuff that seemed hard
      to document as-is and so I changed it. In this case, in the "http"
      library. The new code is more or less equivalent, I think, but the
      resulting documentation makes it more obvious that it's wrong...
      bef6ff3b
  8. 18 Mar, 2016 1 commit
  9. 14 Mar, 2016 1 commit
  10. 12 Mar, 2016 3 commits
  11. 02 Mar, 2016 1 commit
  12. 01 Mar, 2016 1 commit
    • Adam Barth's avatar
      Minor improvements to AnimationController · 08de980a
      Adam Barth authored
      * Makes repeat default to the lower and upper bounds
      * Makes animateTo handle unbounded ranges better
      * Improve the name of _TweenSimulation
      
      Fixes #2096
      Fixes #2090
      Fixes #2091
      08de980a
  13. 27 Feb, 2016 2 commits
    • Adam Barth's avatar
      Remove AnimationDirection · 3bbeee7b
      Adam Barth authored
      This concept is now private to AnimationController. All the clients actually
      want the AnimationStatus.
      3bbeee7b
    • Adam Barth's avatar
      Elide fewer AnimationStatus callbacks · 25ab5555
      Adam Barth authored
      Previously we would elide forward and reverse callbacks that canceled each
      other out, which broke the expected state machine. Now we synchronously deliver
      status callbacks when start an animation.
      
      Fixes #1913
      25ab5555
  14. 25 Feb, 2016 2 commits
  15. 24 Feb, 2016 1 commit
  16. 22 Feb, 2016 1 commit
  17. 21 Feb, 2016 1 commit
  18. 12 Feb, 2016 3 commits
  19. 11 Feb, 2016 1 commit
    • Ian Hickson's avatar
      Clean up imports and exports. · a94999ba
      Ian Hickson authored
      Each layer is supposed to reexport the parts of the previous layer
      that are part of its API.
      
      - In painting.dart, export from dart:ui all the Canvas-related APIs
        that make sense to be used at higher levels, e.g. PaintingStyle.
      
      - Delete painting/shadows.dart. It was dead code.
      
      - In rendering/object.dart, export all of painting.dart.
      
      - In widgets/basic.dart, export all of painting.dart and
        animation.dart. Some classes in animation/ are renamed to make this
        less disruptive and confusing to the namespace.
      
      - Split out Stocks back into an import model rather than a part model,
        so that it's easier to manage its dependencies on a per-file basis.
      
      - Move Ticker to scheduler library.
      
      - Remove as many redundant imports as possible now.
      
      - Some minor nit picking cleanup in various files.
      a94999ba
  20. 05 Feb, 2016 1 commit
  21. 22 Jan, 2016 1 commit
  22. 21 Jan, 2016 5 commits
  23. 20 Jan, 2016 6 commits
    • Adam Barth's avatar
      Move ClampedSimulation into newton · 87ab798d
      Adam Barth authored
      ClampedSimulation makes more sense at the newton layer because it's dealing
      entirely with newton concepts.
      87ab798d
    • Adam Barth's avatar
      Remove Performance and AnimatedValue · b988a875
      Adam Barth authored
      This patch removes Performance and AnimationValue now that we've ported the
      framework over to AnimationController and Tween. This patch also cleans up the
      names of the AnimationController classes now that they don't have to avoid
      conflicts with the old animation API. Specifically, I've made the following
      renames:
      
       * Animated -> Animation
       * Evaluatable -> Animatable
       * PerformanceStatus -> AnimationStatus
      
      This patch is just renames and moving code around. There aren't any changes in
      behavior.
      b988a875
    • Adam Barth's avatar
      Port the remainder of the framework to AnimationController · e459e712
      Adam Barth authored
      There should be no more uses of Performance or AnimatedValue in the framework
      or the examples.
      e459e712
    • Adam Barth's avatar
      Finish porting material.dart to AnimationController · 08b27fd7
      Adam Barth authored
      After this patch, there aren't any direct uses of Performance in material.dart.
      08b27fd7
    • Adam Barth's avatar
      Switch Navigator over to using AnimationController · 6cea5dc8
      Adam Barth authored
      This patch moves Navigator and related code over to using
      AnimationController.
      6cea5dc8
    • Adam Barth's avatar
      Move Scaffold over to using AnimationController · 0b098ee2
      Adam Barth authored
      Also, clean up the class hierarchy for AnimationController now that
      we've renamed progress to value. That means everything in the hierarchy
      now has a value, include Watchable. This patch renames Watchable to
      Animated<T>, which lets us use that type almost everywhere.
      
      I've added some ducktape to modal bottom sheets to avoid having to
      refactor all of Navigator to use AnimationController. I'll remove the
      ducktape in the next patch.
      0b098ee2