1. 21 Jun, 2016 1 commit
    • Ian Hickson's avatar
      ImageIcon (#4649) · e502e9c8
      Ian Hickson authored
      Anywhere that accepted IconData now accepts either an Icon or an
      ImageIcon.
      
      Places that used to take an IconData in an `icon` argument, notably
      IconButton and DrawerItem, now take a Widget in that slot. You can wrap
      the value that used to be passed in in an Icon constructor to get the
      same result.
      
      Icon itself now takes the icon as a positional argument, for brevity.
      
      ThemeData now has an iconTheme as well as a primaryIconTheme, the same
      way it has had a textTheme and primaryTextTheme for a while.
      
      IconTheme.of() always returns a value now (though that value itself may
      have nulls in it). It defaults to the ThemeData.iconTheme.
      
      IconThemeData.fallback() is a new method that returns an icon theme data
      structure with all fields filled in.
      
      IconTheme.merge() is a new constructor that takes a context and creates
      a widget that mixes in the new values with the inherited values.
      
      Most places that introduced an IconTheme widget now use IconTheme.merge.
      
      IconThemeData.merge and IconThemeData.copyWith act in a way analogous to
      the similarly-named members of TextStyle.
      
      ImageIcon is introduced. It acts like Icon but takes an ImageProvider
      instead of an IconData.
      
      Also: Fix the analyzer to actually check the stocks app.
      e502e9c8
  2. 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
  3. 22 Apr, 2016 1 commit
  4. 07 Apr, 2016 1 commit
  5. 31 Mar, 2016 1 commit
  6. 30 Mar, 2016 2 commits
  7. 14 Mar, 2016 1 commit
  8. 07 Mar, 2016 1 commit
  9. 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
  10. 19 Jan, 2016 1 commit
  11. 18 Jan, 2016 1 commit
    • Ian Hickson's avatar
      Reimplement the theme transition animation by actually animating the Theme. · 73c9ebab
      Ian Hickson authored
      As part of this:
       - A lot of classes got new lerp functions, including e.g. TextStyle.
       - Theme's constructor story got overhauled. You can now configure
         everything if you really want to, and we're better about defaults.
       - Material no longer automatically animates its background color.
         (It still does for its shadow.)
       - Tabs try to get the indicator color from the theme.
       - The fields in ThemeData got reordered for sanity.
       - Theme.== and Theme.hashCode got fixed.
       - Typography got a bit of a spring cleaning.
      
      Fixes #613.
      73c9ebab
  12. 30 Dec, 2015 1 commit
  13. 10 Dec, 2015 2 commits
  14. 09 Dec, 2015 1 commit
  15. 04 Dec, 2015 1 commit
  16. 26 Oct, 2015 1 commit
    • Adam Barth's avatar
      Be explicit about whether text styles inherit · 7a811e5a
      Adam Barth authored
      Now TextStyle has a boolean "inherit" value, which controls whether null values
      should use should inherit from the current default text style or whether they
      should use their initial values.
      7a811e5a
  17. 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
  18. 16 Oct, 2015 1 commit
  19. 15 Oct, 2015 2 commits
    • Hixie's avatar
      Improve debugging output · 1f40d96f
      Hixie authored
      Teach dumpRenderTree() to draw actual trees.
      Make the TextStyle output terser so it doesn't overflow the output.
      Make debugDumpApp() say what mode we're in (checked vs release).
      Hide lifecycle state from release mode dumps (since it's checked-only state).
      1f40d96f
    • Adam Barth's avatar
      Fix TextDecoration.lineThrough · 0442b642
      Adam Barth authored
      We had a typo in our CSS translation.
      0442b642
  20. 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
  21. 10 Oct, 2015 2 commits
  22. 09 Oct, 2015 1 commit
  23. 17 Sep, 2015 1 commit
  24. 10 Sep, 2015 1 commit
  25. 08 Sep, 2015 1 commit
  26. 31 Aug, 2015 1 commit
  27. 03 Aug, 2015 1 commit
  28. 31 Jul, 2015 1 commit
    • Adam Barth's avatar
      Fix TextAlign.right · 2b0e4784
      Adam Barth authored
      We were applying the style to the RenderInline but we actually needed to apply
      it to the RenderParagraph. The lineHeight property had the same problem.
      2b0e4784
  29. 28 Jul, 2015 2 commits
  30. 18 Jul, 2015 1 commit
  31. 16 Jul, 2015 1 commit