1. 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
  2. 09 Feb, 2016 3 commits
  3. 05 Feb, 2016 1 commit
  4. 27 Jan, 2016 1 commit
  5. 22 Jan, 2016 1 commit
  6. 21 Jan, 2016 1 commit
  7. 20 Jan, 2016 4 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
      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
      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
    • Adam Barth's avatar
      Port examples to the new animation API · fc978c1a
      Adam Barth authored
      These now use Animation and AnimationController instead of PerformanceView and
      Performance.
      fc978c1a
  8. 18 Jan, 2016 1 commit
    • Ian Hickson's avatar
      Reimplement the theme transition animation by actually animating the Theme. · 73c9ebab
      Ian Hickson authored
      As part of this:
       - A lot of classes got new lerp functions, including e.g. TextStyle.
       - Theme's constructor story got overhauled. You can now configure
         everything if you really want to, and we're better about defaults.
       - Material no longer automatically animates its background color.
         (It still does for its shadow.)
       - Tabs try to get the indicator color from the theme.
       - The fields in ThemeData got reordered for sanity.
       - Theme.== and Theme.hashCode got fixed.
       - Typography got a bit of a spring cleaning.
      
      Fixes #613.
      73c9ebab
  9. 11 Jan, 2016 4 commits
    • Adam Barth's avatar
      Use a named argument for Widget children · 05676641
      Adam Barth authored
      Previously we used a positional argument for widgets that had multiple
      children. Now we use a named argument that defaults to an empty list.
      
      Fixes #241
      05676641
    • Adam Barth's avatar
      Rename ScrollDirection to Axis · b2cef9f2
      Adam Barth authored
      We use the ScrollDirection for more than just scrolling.
      
      Fixes #151
      b2cef9f2
    • Adam Barth's avatar
      TabView fails to update tab contents · 432b1793
      Adam Barth authored
      When the TabView widget's children change, we don't change the children
      we give to the PageViewport because we fail to update _items. This patch
      watches didChangeConfig and updates _items appropriately.
      
      Fixes #1134
      Fixes #1168
      432b1793
    • Adam Barth's avatar
      Simplify TabView API · dd08bf79
      Adam Barth authored
      Instead of taking a builder and a generic type, we can just take a
      List<Widget>.
      dd08bf79
  10. 08 Jan, 2016 3 commits
  11. 07 Jan, 2016 1 commit
  12. 06 Jan, 2016 2 commits
  13. 02 Jan, 2016 1 commit
  14. 22 Dec, 2015 2 commits
  15. 16 Dec, 2015 1 commit
    • Hans Muller's avatar
      Correct the TabBarView swipe selection change animation · 65dca5b5
      Hans Muller authored
      The TabBarSelection change animation needs to start where the fling's drag gesture ended rather than from zero.  The intial vlaue of progress for the TabBarSelection's performance is now converted from the range used during an interactive drag, to the range used when animating from the previously selected tab to the new one.
      
      TabBarSelection now requires a maxIndex parameter.
      65dca5b5
  16. 15 Dec, 2015 1 commit
  17. 14 Dec, 2015 1 commit
    • Hans Muller's avatar
      Support TabBarView swipe · 80c5e6a3
      Hans Muller authored
      Swiping left or right in a TabBarView now changes the selected tab in the way it's supposed to.
      
      Currently swipe gestures that start while the selection change is underway are ignored. Will fix that in a separate change.
      80c5e6a3
  18. 10 Dec, 2015 2 commits
  19. 05 Dec, 2015 1 commit
  20. 01 Dec, 2015 1 commit
  21. 30 Nov, 2015 1 commit
    • Hans Muller's avatar
      TabNavigator animates selected TabView · 9de4df1e
      Hans Muller authored
      The TabBar's selection is now represented by a TabBarSelection object which encapsulates both the previous and currently selected indices and the Performance used to animate the selection indicator.
      
      Added a TabBarView class which displays a tab's contents. It uses a shared TabBarSelection to stay in sync with a TabBar. The TabBarView scrolls in sync with the TabBar when the selection changes. Eventually it will allow one to fling the selection forward or backwards.
      
      Added a tabBar property to ToolBar. Typically the corresponding TabBarView will be the body of the toolbar's Scaffold.
      
      Removed TabNavigatorView and TabNavigator.
      
      Added a widget gallery tabs demo page. Removed the old tabs demo.
      9de4df1e
  22. 19 Nov, 2015 1 commit
    • Adam Barth's avatar
      Refactor PaintingContext · fc576814
      Adam Barth authored
      This patch simplifies PaintingContext with several goals:
      
      1) We now call a callback instead of assuming the caller has a single child to
         paint. This change will let us handle render objects that wish to paint more
         than one child.
      2) We now avoid creating lots of empty picture layers because we don't eagerly
         start recording pictures. Instead, we wait for the first caller to touch the
         canvas before creating the picture recorder.
      3) We now are more consistent about which values have incorporated the painting
         offset.
      fc576814
  23. 06 Nov, 2015 1 commit
  24. 05 Nov, 2015 1 commit
    • Adam Barth's avatar
      Improve hit testing · 9bc64540
      Adam Barth authored
      Now a RenderBox is considered hit if one of its children are hit or it itself
      decides that it's hit. In particular, empty space inside a flex won't be hit
      because none of the children are located there and a RenderFlex doesn't
      consider itself hittable.
      
      Fixes #53
      Fixes #1221
      9bc64540
  25. 01 Nov, 2015 1 commit
  26. 28 Oct, 2015 2 commits