1. 12 Jan, 2016 1 commit
    • Ian Hickson's avatar
      Provide a safe time to update a WidgetToRenderBoxAdapter · 867bbcc9
      Ian Hickson authored
      If you change the RenderObject tree between frames, you'll assert if
      you subsequently hit test. So e.g. if you get two button presses back
      to back, and you mutate the tree synchronously in response to the
      first one, the second will assert.
      
      This adds an onBuild callback to WidgetToRenderBoxAdapter to make it
      easier to do the updates at the right time, i.e., during widget build.
      It'll be called whenever you rebuild the WidgetToRenderBoxAdapter
      itself, so all you have to do to use it is call setState() on whoever
      is building the WidgetToRenderBoxAdapter.
      867bbcc9
  2. 11 Jan, 2016 1 commit
  3. 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
  4. 19 Oct, 2015 1 commit
  5. 13 Oct, 2015 1 commit
    • Hixie's avatar
      Port first sector demo to fn3 · 1cf1cf9c
      Hixie authored
      Also, fix warnings in rendering/sector_layout.dart
      Also, fix hit testing in rendering/sector_layout.dart
      Also, add WidgetToRenderBoxAdapter
      Also, make the rendering library debugging tools more resilient to
      dumping stuff before layout is complete.
      1cf1cf9c
  6. 12 Oct, 2015 2 commits
  7. 10 Oct, 2015 1 commit
  8. 09 Oct, 2015 2 commits
  9. 06 Oct, 2015 1 commit
    • Adam Barth's avatar
      Simplify Scaffold · 89a09822
      Adam Barth authored
      Rather than using a custom render object, we can just use a Stack.
      89a09822
  10. 14 Sep, 2015 1 commit
  11. 26 Aug, 2015 1 commit
    • Hixie's avatar
      Replace Flex to Row and Column in tests and examples. · ce28a717
      Hixie authored
      This still leaves Flex and FlexDirection available. At some point once
      people have transitioned to Row/Column we should rename Flex to _Flex
      and stop reexporting FlexDirection from basic.dart.
      ce28a717
  12. 21 Aug, 2015 1 commit
  13. 19 Aug, 2015 1 commit
    • Adam Barth's avatar
      Add package:sky/rendering.dart · dea3a092
      Adam Barth authored
      Similar to widgets.dart, rendering.dart exports the entire rendering layer.
      Also, update the examples to use rendering.dart and widgets.dart. Also clean up
      some exports so that the examples have more sensible imports.
      dea3a092
  14. 08 Aug, 2015 1 commit
  15. 04 Aug, 2015 1 commit
  16. 31 Jul, 2015 1 commit
  17. 28 Jul, 2015 2 commits
  18. 16 Jul, 2015 1 commit