1. 19 Nov, 2016 1 commit
  2. 23 Oct, 2016 1 commit
  3. 21 Oct, 2016 1 commit
  4. 26 Sep, 2016 1 commit
    • Ian Hickson's avatar
      Turn off AnimationControllers when not in use (#5902) · 9e673853
      Ian Hickson authored
      This requires all AnimationController objects to be given a
      TickerProvider, a class that can create the Ticker.
      
      It also provides some nice mixins for people who want to have their
      State provide a TickerProvider. And a schedulerTickerProvider for those
      cases where you just want to see your battery burn.
      
      Also, we now enforce destruction order for elements.
      9e673853
  5. 12 Jun, 2016 1 commit
  6. 08 Apr, 2016 1 commit
  7. 05 Apr, 2016 1 commit
    • Ian Hickson's avatar
      Introduce a color for selected rows in data tables · b9f04817
      Ian Hickson authored
      - Rename unselectedColor to unselectedWidgetColor.
      
      - Rename selectionColor to textSelectionColor.
      
      - Add selectedRowColor.
      
      - Remove hintOpacity since it's not tested and has no demo clients.
      
      - Add some docs.
      b9f04817
  8. 01 Apr, 2016 1 commit
  9. 31 Mar, 2016 2 commits
  10. 14 Mar, 2016 1 commit
  11. 12 Mar, 2016 1 commit
  12. 11 Mar, 2016 1 commit
  13. 01 Mar, 2016 1 commit
  14. 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
  15. 27 Jan, 2016 1 commit
  16. 09 Dec, 2015 1 commit
  17. 08 Dec, 2015 1 commit
  18. 26 Nov, 2015 2 commits
    • Adam Barth's avatar
      Properly paint disabled switches · 3fbfe732
      Adam Barth authored
      Also, refactor more common code into RenderToggleable and handle dark themes
      more correctly.
      
      Fixes #601
      3fbfe732
    • Adam Barth's avatar
      Improve Material selection controls · 3f06da0e
      Adam Barth authored
       - These controls now have proper radial reactions.
       - You can drag the switch.
       - The radio button animates properly.
       - There's a demo in the Material Gallery
      3f06da0e
  19. 20 Nov, 2015 1 commit
    • Adam Barth's avatar
      Callback identity is too fragile for CustomPaint · 72329cf4
      Adam Barth authored
      Many of the widgets that use CustomPaint were spamming repaints because
      CustomPaint repaints when the identity of the onPaint callback changes, which
      it does every build for StatelessComponents.
      
      This patch changes CustomPaint to use a CustomPainter, similar to the new
      custom layout widgets. The CustomPainter has a `shouldRepaint` function along
      with its `paint` function. This function gives clients explicit control over
      when the custom paint object repaints.
      72329cf4
  20. 27 Oct, 2015 1 commit
    • Hixie's avatar
      Use the presence of handler to determine 'enabled' · d11acc41
      Hixie authored
      Instread of an explicit 'enabled' bool, this uses the presence of the
      event handler to determine if a widget is enabled or not. This means
      that if you've not passed a handler, your widget will be disabled, which
      makes sense, since it wouldn't work anyway.
      
      Adds this feature to checkbox, and ports raised button, flat button, and
      radio buttons to this new model.
      
      Adds a checkbox to card_collection that can be disabled.
      
      Hide a (basically bogus) hint from the (soon to be disabled) strong hint
      mode in the analyzer that this reveals.
      d11acc41
  21. 26 Oct, 2015 2 commits
    • Hixie's avatar
      Radio button 'disabled' state. · c87e9670
      Hixie authored
      Also:
       - give card_collection an option to turn on or off the edit widgets
       - give card_collection an option to control text alignment (when not editing)
       - give card_collection a "dump" option to aid debugging
       - make the gesture detector report which gestures it is listening to
      c87e9670
    • Hixie's avatar
      Radio<T> and ValueChanged<T> · b1dbf452
      Hixie authored
      Make Radio widgets take a type that describes the type of their value,
      so that you can catch when you use the wrong value.
      
      Standardise on ValueChanged<Foo> instead of having a FooValueChanged
      for every value of Foo.
      b1dbf452
  22. 20 Oct, 2015 1 commit
  23. 16 Oct, 2015 1 commit
  24. 10 Oct, 2015 3 commits
  25. 09 Oct, 2015 1 commit
  26. 07 Oct, 2015 1 commit
    • Hixie's avatar
      HomogeneousViewport support for Theme.of() · d45bf145
      Hixie authored
      Previously, RenderObjectElements didn't support being marked dirty. This
      is fine, except for MixedViewport and HomogeneousViewport, which have
      builder functions to which they hand themselves as a BuildContext. If
      those builder functions call, e.g., Theme.of(), then when the theme
      changes, the Inherited logic tries to tell the RenderObjectElement
      object that its dependencies changed and that doesn't go down well.
      
      This patch fixes this by making RenderObjectElement a BuildableElement,
      and making MixedViewport and HomogeneousViewport hook into that to
      rebuild themselves appropriately.
      
      Also, this was only found at all because ThemeData didn't implement
      operator==, so we were aggressively marking the entire tree dirty all
      the time. That's fixed here too.
      
      Also, I changed card_collection.dart to have more features to make this
      easier to test. This found bugs #1524, #1522, #1528, #1529, #1530, #1531.
      d45bf145
  27. 06 Oct, 2015 1 commit
  28. 01 Oct, 2015 1 commit
  29. 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
  30. 28 Aug, 2015 2 commits
  31. 22 Aug, 2015 1 commit
  32. 04 Aug, 2015 1 commit
    • James Robinson's avatar
      Teach event system about disposition and make 'consumed' disposition terminal · 53163f8b
      James Robinson authored
      This introduces the notion of event disposition and allows event
      targets (widgets and render objects) to consume events that should not
      be processed further. This is needed by the Switch component in the
      Drawer in the stocks example. The Switch is embedded in a DrawerItem.
      The Switch handles the gesture tap event to toggle its state and should
      handle pointer events to allow swiping and draw its own radial
      reaction. The DrawerItem also handles gesture taps to allow toggling
      the switch value when tapping anywhere on the drawer and to draw its
      own ink splash. When tapping on the switch, both the switch's render
      object and the DrawerItem's listener are in the event dispatch path.
      The Switch needs to signal in some fashion that it consumed the event
      so the DrawerItem does not also try to toggle the switch's state.
      53163f8b
  33. 28 Jul, 2015 2 commits