1. 12 Mar, 2016 3 commits
  2. 11 Mar, 2016 4 commits
    • Adam Barth's avatar
      AspectRatio should attempt to fit its height · 6a54e122
      Adam Barth authored
      If there's not enough height for the given aspect ratio, we now try to see if
      using the height to infer the width will fit the given constraints. The
      algorithm we use is similar to the one we use for RenderImage.
      
      Fixes #2620
      6a54e122
    • Adam Barth's avatar
      Add RotatedBox which applies a rotation before layout · e59b25b2
      Adam Barth authored
      Transform applies its transform before painting, but sometimes you want
      the widget to layout after its transform has been applied. We can't
      handle general tranforms in this way because we can't couple width and
      height constriants, but we can handle certain rotations.
      
      Fixes #1214
      e59b25b2
    • Adam Barth's avatar
      Provide the BuildContext to createRenderObject and updateRenderObject · 0277b075
      Adam Barth authored
      We'll need this for RTL support because the RTL state will live in the widget
      tree. Also, remove the `oldWidget` argument to updateRenderObject because there
      aren't any clients for it.
      0277b075
    • Adam Barth's avatar
      Prepare to make RenderObjectElement buildable · 0327141c
      Adam Barth authored
      This patch prepares us to pass a BuildContext to RenderObjectWidgets, which
      will make it possible to rebuild RenderObjectElements:
      
       * Delay creation of the render object until mount(). That will let us pass
         `this` to createRenderObject and have the inherited elements be initialized.
      
       * Cleanup widgets that take builder closures to prepare for their
         RenderObjectElement to be rebuilt more often.
      
       * Add a test for the interaction between inherited widgets and
         MixedViewport.
      
      Related to #2598
      0327141c
  3. 10 Mar, 2016 1 commit
  4. 06 Mar, 2016 1 commit
  5. 04 Mar, 2016 1 commit
  6. 01 Mar, 2016 1 commit
  7. 29 Feb, 2016 1 commit
  8. 27 Feb, 2016 1 commit
  9. 25 Feb, 2016 1 commit
    • Hixie's avatar
      Remove size observers from scrollables. · f8080557
      Hixie authored
      Also:
       - add operator==/hashCode/toString to ViewportDimensions
       - add toString to BindingBase
       - add toString and debugFillDescription to ScrollBehavior
       - fix a bug in the RawGestureDetectorState's replaceGestureRecognizers
       - rename MixedViewport's onExtentsUpdate to onExtentChanged
       - replace ExtentsUpdateCallback with ValueChanged<double>
       - remove a microtask for dispatching scroll start, since it
         did not appear to have any purpose
       - added dartdocs to Instrumentation until I understood it
       - made all event dispatch in Instrumentation drain microtasks
      f8080557
  10. 24 Feb, 2016 1 commit
    • Adam Barth's avatar
      Improve TextSpan · fb4dbf45
      Adam Barth authored
      Now we just have one TextSpan class that handles both simple strings, trees of
      children, and styling both. This approach simplifies the interface for most
      clients.
      
      This patch also removes StyledText, which was weakly typed and tricky to use
      correctly. The replacement is RichText, which is strongly typed and uses
      TextSpan.
      fb4dbf45
  11. 18 Feb, 2016 1 commit
  12. 17 Feb, 2016 1 commit
  13. 16 Feb, 2016 1 commit
  14. 14 Feb, 2016 2 commits
  15. 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
  16. 10 Feb, 2016 1 commit
    • Hixie's avatar
      Tapping through drag targets. · 4d5e4067
      Hixie authored
      Factor out the HitTestBehavior logic so that RenderMetaData can use it.
      
      Use that in DragTarget.
      4d5e4067
  17. 09 Feb, 2016 2 commits
  18. 06 Feb, 2016 1 commit
  19. 02 Feb, 2016 2 commits
  20. 01 Feb, 2016 3 commits
  21. 31 Jan, 2016 1 commit
    • Adam Barth's avatar
      Adds the ability to move the caret by tapping · 36099383
      Adam Barth authored
      Now the text input control knows how to move the caret when you tap
      inside the string. There's still some rough edges to polish up, but this
      patch is the first step.
      
      Fixes #108
      36099383
  22. 29 Jan, 2016 2 commits
  23. 27 Jan, 2016 1 commit
  24. 22 Jan, 2016 1 commit
  25. 15 Jan, 2016 1 commit
  26. 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
  27. 11 Jan, 2016 3 commits