1. 20 Jan, 2017 1 commit
  2. 18 Jan, 2017 1 commit
  3. 11 Jan, 2017 1 commit
  4. 25 Oct, 2016 1 commit
  5. 05 Oct, 2016 1 commit
  6. 03 Oct, 2016 1 commit
  7. 20 Sep, 2016 1 commit
  8. 12 Sep, 2016 1 commit
  9. 14 Jun, 2016 2 commits
    • pq's avatar
      Added asserts. · f5a4e632
      pq authored
      f5a4e632
    • pq's avatar
      Add missing returns. · 7a955487
      pq authored
      As of `1.18.0-dev-0`, these cases will get flagged.  In the meantime, the
      7a955487
  10. 06 Jun, 2016 1 commit
    • Adam Barth's avatar
      Tab labels incorrectly fade out (#4391) · b96d1dfc
      Adam Barth authored
      Assigning to `size` called our intrinsic sizing functions re-entrantly, which
      is a destructive operation on TextPainter. Ideally we'd made that a
      non-destructive operation, but in the meantime we can fix the tab fading issue
      by grabbing the text size before assigning to `size`.
      
      Fixes #4365
      b96d1dfc
  11. 18 May, 2016 1 commit
  12. 12 May, 2016 2 commits
  13. 07 May, 2016 1 commit
    • Adam Barth's avatar
      Move TextAlign out of TextStyle (#3789) · ee903af0
      Adam Barth authored
      TextAlign applies to a whole paragraph instead of applying to an individual
      text span. This patch moves the property out of TextStyle and into a separate
      property on Text and RichText.
      ee903af0
  14. 29 Apr, 2016 1 commit
    • Adam Barth's avatar
      Improve the TextPainter API (#3621) · e41120bc
      Adam Barth authored
      Instead of using properties, TextPainter now receives min and max width as
      parameters to layout. Also, this patch integrates the intrinsic sizing logic
      into the main layout function, which satisfies all the existing uses cases.
      e41120bc
  15. 22 Apr, 2016 1 commit
  16. 15 Apr, 2016 1 commit
  17. 04 Apr, 2016 1 commit
  18. 18 Mar, 2016 2 commits
  19. 17 Mar, 2016 1 commit
  20. 14 Mar, 2016 1 commit
  21. 12 Mar, 2016 3 commits
  22. 11 Mar, 2016 1 commit
    • Ian Hickson's avatar
      Fix crash when dumping the app if it uses RichText · 7cf2dbdf
      Ian Hickson authored
      Specifically:
      
      * Handle null styles in TextSpan without crashing in toString().
      
      * Handle null children in TextSpan child lists without crashing in
        toString().
      
      * Handle entirely empty TextSpans in toString() explicitly.
      
      * Assert that TextSpans don't contain nulls in various places. This is
        done more often than one might think necessary, because it turns out
        that TextSpan takes a (mutable) List for one of its arguments, so
        who knows what it will contain at any given time. By asserting all
        over the place, hopefully we'll catch it near the change if they do
        change it.
      
      * Add a RichText example to Stocks to exercise RichText and TextSpans.
      
      See also: https://github.com/flutter/flutter/issues/2514, https://github.com/flutter/flutter/issues/2519
      7cf2dbdf
  23. 01 Mar, 2016 1 commit
  24. 25 Feb, 2016 2 commits
  25. 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
  26. 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
  27. 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
  28. 30 Jan, 2016 1 commit
  29. 27 Jan, 2016 1 commit
  30. 18 Jan, 2016 1 commit
  31. 10 Dec, 2015 2 commits
  32. 11 Nov, 2015 1 commit
  33. 26 Oct, 2015 1 commit
    • Adam Barth's avatar
      Right-aligned text paints offscreen sometimes · 69a0689a
      Adam Barth authored
      We were assuming that the text extended from 0.0 to its max content width.
      That's not correct for right-aligned text. Instead, we need to layout the text
      again at the width we want it to occupy.
      69a0689a