1. 27 Jan, 2016 1 commit
  2. 20 Jan, 2016 3 commits
    • 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
      AnimatedBuilder should have a child · d25951c5
      Adam Barth authored
      Providing a pre-built child is more efficient because we don't need to rebuild
      the child every tick of the animation.
      d25951c5
    • 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
  3. 11 Jan, 2016 1 commit
  4. 05 Dec, 2015 1 commit
  5. 01 Dec, 2015 1 commit
  6. 20 Nov, 2015 1 commit
    • Hixie's avatar
      Convert Persistent Bottom Sheets to a Scaffold API · 03e094aa
      Hixie authored
      - `Scaffold.of(context).showBottomSheet(widget);`
      - Returns an object with .closed Future and .close() method.
      - Uses a StateRoute to handle back button.
      - Take the Navigator logic out of the BottomSheet widget.
      - Support showing a sheet while an old one is going away.
      - Add Navigator.remove().
      03e094aa
  7. 19 Nov, 2015 1 commit
    • Hixie's avatar
      Snackbar Refactor · 954713ab
      Hixie authored
      "showSnackBar()" is now a feature of a Scaffold. To get to a Scaffold
      you either use a global key (`scaffoldKey.currentState.showSnackBar(...)`),
      or you use `Scaffold.of(context)`.
      
      Snack bars no longer have a route. They are entirely managed by the
      Scaffold. Fixes #432.
      
      Snack bars now queue up when you have several of them. Fixes #374.
      
      Snack bars now auto-size themselves around their contents. This is step
      one towards implementing multiline snack bars.
      
      Snack bars now self-dismiss after some per-snackbar configurable period.
      
      The self-dismissing pauses while a dialog is up above the snackbar (or
      anything that uses ModalRoute). To enable this, there's now a
      `ModalRoute.of(context)` API that returns the current ModalRoute, and
      you will be rebuilt if you asked for this and the route's "current"
      status changes. To implement this, the Navigator now rebuilds
      unconditionally any time it pushes or pops a route.
      
      Snack bars now use the curves that Android uses for snack bars.
      
      Snack bar contents now fade in.
      954713ab
  8. 18 Nov, 2015 1 commit
    • Hans Muller's avatar
      Update shadow rendering · d9153a13
      Hans Muller authored
      Shadows now render as three seprate MaskFilter.blur components per the most recent Material spec.
      
      The shadows Map was replaced by a similar Map called elevationToShadow with entries that match the 10 elevations specifed by http://www.google.com/design/spec/what-is-material/elevation-shadows.html.
      
      The "level" property (many classes) is now called "elevation", to match the Material spec.
      
      BoxShadow now includes a spreadRadius parameter - as in CSS box-shadow. Renamed the BoxShadow blur property to blurRadius to further align BoxShadow with CSS box-shadow.
      d9153a13
  9. 14 Nov, 2015 1 commit
  10. 12 Nov, 2015 1 commit
  11. 30 Oct, 2015 1 commit
  12. 27 Oct, 2015 1 commit
    • Adam Barth's avatar
      Use VoidCallback for onPressed and friends · d6dc9d47
      Adam Barth authored
      Previous these callbacks were leaking the implementation detail that they were
      triggered by taps. In a later patch, we're going to add a parameter to
      GestureTapCallback that these callbacks won't have.
      
      Related to #1807
      d6dc9d47
  13. 22 Oct, 2015 1 commit
    • Adam Barth's avatar
      Add Navigator.of · de395582
      Adam Barth authored
      Now you don't need to pass the navigator around everywhere.
      de395582
  14. 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
  15. 20 Oct, 2015 1 commit
  16. 16 Oct, 2015 1 commit
  17. 12 Oct, 2015 2 commits
    • Hixie's avatar
      Lots of trivial warning fixes · f2cc43a4
      Hixie authored
      Add type annotations in many places.
      Fix some identifiers to have more lint-satisfying names.
      Make all operator==s consistent in style.
      Reorder some functions for consistency.
      Make ParentData no longer dynamic, and fix all the code around that.
      f2cc43a4
    • Adam Barth's avatar
      Change the default MaterialType to canvas · 09665c0d
      Adam Barth authored
      Canvas is by far the most popular type of material by call site (and makes for
      a faster default because it doesn't have a RRect clip).
      09665c0d
  18. 10 Oct, 2015 1 commit
  19. 09 Oct, 2015 2 commits
  20. 07 Oct, 2015 1 commit
  21. 06 Oct, 2015 3 commits
  22. 05 Oct, 2015 1 commit
  23. 03 Oct, 2015 1 commit
    • Adam Barth's avatar
      RenderInkWell should use gestures · cf889934
      Adam Barth authored
      After this patch, InkWell is driven by gesture recognizers, which lets us
      cleanly cancel splashes when the user actually scrolls.
      
      I've also refactored all the clients of InkWell to use InkWell to detect
      gestures instead of wrapping InkWell in a GestureDetector.
      
      Fixes #1271
      cf889934
  24. 01 Oct, 2015 1 commit
  25. 18 Sep, 2015 2 commits
  26. 08 Sep, 2015 2 commits
  27. 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
  28. 28 Aug, 2015 2 commits
  29. 25 Aug, 2015 1 commit
  30. 13 Aug, 2015 1 commit
    • Matt Perry's avatar
      Fix common asserts in animation API. · 8a729317
      Matt Perry authored
      1. We would assert if you tried to start an animation from within an
      animation status callback. This is a common pattern, so I fixed this
      assert (in Ticker._tick).
      2. We would assert for animations with duration under a millisecond.
      Fixed.
      
      Also removed the workarounds assocated with #1.
      8a729317
  31. 11 Aug, 2015 1 commit
    • Matt Perry's avatar
      Scaffold: animate the FloatingActionButton with the SnackBar. · 3d9f5231
      Matt Perry authored
      This introduces the concept of an Anchor, which you can use to link
      transitions together. I've used this in the Fitness and Stocks apps to
      link the FAB and SnackBar to animate together by sharing the
      SlideTransition.
      
      I also fixed the Scaffold hit testing code to apply sub-widget
      transforms, so it works with Transformed nodes.
      3d9f5231