1. 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
  2. 18 May, 2016 1 commit
  3. 12 May, 2016 2 commits
  4. 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
  5. 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
  6. 22 Apr, 2016 1 commit
  7. 15 Apr, 2016 1 commit
  8. 04 Apr, 2016 1 commit
  9. 18 Mar, 2016 2 commits
  10. 17 Mar, 2016 1 commit
  11. 14 Mar, 2016 1 commit
  12. 12 Mar, 2016 3 commits
  13. 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
  14. 01 Mar, 2016 1 commit
  15. 25 Feb, 2016 2 commits
  16. 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
  17. 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
  18. 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
  19. 30 Jan, 2016 1 commit
  20. 27 Jan, 2016 1 commit
  21. 18 Jan, 2016 1 commit
  22. 10 Dec, 2015 2 commits
  23. 11 Nov, 2015 1 commit
  24. 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
  25. 23 Oct, 2015 3 commits
    • Adam Barth's avatar
      Delete OldTextPainter · aa418844
      Adam Barth authored
      Also, delete all references to DOM APIs.
      aa418844
    • Adam Barth's avatar
      Enable the new TextPainter · 228469bb
      Adam Barth authored
      228469bb
    • Adam Barth's avatar
      Make NewTextPainter actually work · 5ba7a1c7
      Adam Barth authored
      The NewTextPainter is still disabled by default. A future patch will flip the
      flag to enable it.
      
      This patch uses a new approach to writing bindings by encoding data into array
      buffers. This approach is more efficient than the existing IDL based approach.
      If this works out well, we should convert our other performance-sensitive
      interfaces to this approach in future patches.
      5ba7a1c7
  26. 16 Oct, 2015 1 commit
  27. 12 Oct, 2015 1 commit
    • Hixie's avatar
      Lots of trivial warning fixes · f2cc43a4
      Hixie authored
      Add type annotations in many places.
      Fix some identifiers to have more lint-satisfying names.
      Make all operator==s consistent in style.
      Reorder some functions for consistency.
      Make ParentData no longer dynamic, and fix all the code around that.
      f2cc43a4
  28. 10 Oct, 2015 2 commits
  29. 09 Oct, 2015 2 commits
  30. 29 Sep, 2015 1 commit