1. 02 Oct, 2017 1 commit
    • Adam Barth's avatar
      Add Alignment, which will replace FractionalOffset (#12342) · 2b126bcd
      Adam Barth authored
      Unlike FractionalOffset, Alignment uses the center as the zero of the
      coordinate system, which makes the RTL math work out much cleaner.
      
      Also, make FractionalOffset into a subclass of Alignment so that clients
      can continue to use FractionalOffset.
      2b126bcd
  2. 07 Sep, 2017 1 commit
  3. 09 Dec, 2016 1 commit
  4. 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
  5. 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
  6. 29 Jan, 2016 1 commit
  7. 16 Dec, 2015 1 commit
  8. 14 Dec, 2015 1 commit
  9. 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
  10. 20 Oct, 2015 1 commit