1. 23 Mar, 2016 1 commit
  2. 22 Mar, 2016 1 commit
    • Hixie's avatar
      Rationalise the overflow render boxes · 34cc0c47
      Hixie authored
      New RenderAligningShiftedBox abstract class for render boxes with
      "alignment", which as of now is:
      
       - RenderPositionedBox
       - RenderConstrainedOverflowBox (ex RenderOverflowBox)
       - RenderSizedOverflowBox
       - RenderFractionallySizedOverflowBox (ex RenderFractionallySizedBox)
      
      (The respective widgets are Align, OverflowBox, SizedOverflowBox, and
      FractionallySizedBox. They haven't been renamed.)
      
      Also I added some toString details.
      34cc0c47
  3. 18 Mar, 2016 1 commit
  4. 17 Mar, 2016 1 commit
  5. 15 Mar, 2016 1 commit
    • Adam Barth's avatar
      Update RichText dartdoc · 0084e95a
      Adam Barth authored
      The old text was misleading because it was written when RichText was an
      implementation detail of Text.
      
      Fixes #2624
      0084e95a
  6. 14 Mar, 2016 1 commit
  7. 13 Mar, 2016 1 commit
    • Adam Barth's avatar
      [rename fixit] Flex alignments · d5b2e2a0
      Adam Barth authored
      * justifyContent -> mainAxisAlignment
      * alignItems -> crossAxisAlignment
      * FlexJustifyContent -> MainAxisAlignment
      * FlexAlignItems -> CrossAxisAlignment
      
      Fixes #231
      d5b2e2a0
  8. 12 Mar, 2016 9 commits
  9. 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
  10. 10 Mar, 2016 1 commit
  11. 06 Mar, 2016 1 commit
  12. 04 Mar, 2016 1 commit
  13. 01 Mar, 2016 1 commit
  14. 29 Feb, 2016 1 commit
  15. 27 Feb, 2016 1 commit
  16. 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
  17. 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
  18. 18 Feb, 2016 1 commit
  19. 17 Feb, 2016 1 commit
  20. 16 Feb, 2016 1 commit
  21. 14 Feb, 2016 2 commits
  22. 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
  23. 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
  24. 09 Feb, 2016 2 commits
  25. 06 Feb, 2016 1 commit
  26. 02 Feb, 2016 2 commits