1. 12 Sep, 2018 1 commit
  2. 07 Sep, 2018 1 commit
  3. 19 Apr, 2018 2 commits
    • Greg Spencer's avatar
      Updating the Chip demo in the Gallery to include all the new types of chips. (#16522) · b83eb465
      Greg Spencer authored
      This chip demo is more interactive than the last one, trying to exercise all of the types of chips for a demo that lets you select different types of "chips" (like tortilla, wood, micro, etc.), and then filter them and select an action on them.
      b83eb465
    • Greg Spencer's avatar
      Change CircleAvatar to use BoxFit.cover for images (#16649) · 0b389fc9
      Greg Spencer authored
      This is a PR giving some love to the abandoned PR #16263 by @harrisonturton
      
      I've added a test, and formatted it to be readable.
      
      Currently the CircleAvatar does not set a fit property on the DecorationImage it uses to paint images. This causes non-square images to not fully cover the circle, which looks pretty bad. This PR sets it to BoxFix.cover.
      
      Fixes #13478.
      0b389fc9
  4. 22 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Creating chips custom renderer, updating visual look. (#15596) · 4141946c
      Greg Spencer authored
      This updates the visual look of the Chip class, so that it scales properly in the face of text scale (and label widget size) changes, and bases its height off of the label widget's height, constraining the other widgets it contains to be the same height.
      
      To do this properly, I had to implement a custom render object that will measure the height of the label, so the guts of this class are basically rewritten.
      
      In addition, to allow the circle avatar to increase in size when the chip does, I added minRadius and maxRadius arguments to it, and I updated its color handling to use the light/dark primary colors of the theme in a smart way instead of just using black and white.
      
      Updated and added tests.
      4141946c
  5. 07 Dec, 2017 1 commit
    • Ian Hickson's avatar
      Move image logic from services/ to painting/. (#13409) · 44e228eb
      Ian Hickson authored
      This allows the scheduler library to depend on the services library
      and the painting library to depend on the scheduler library without
      the services library having to depend on the scheduler library.
      
      While I was at it I also cleaned up some of the binding logic: the
      licenses logic can now be overridden (and the test library does so),
      and the image cache can now be overridden as well.
      44e228eb
  6. 19 Oct, 2017 1 commit
  7. 12 Oct, 2017 1 commit
  8. 29 Sep, 2017 1 commit
  9. 12 Jun, 2017 1 commit
  10. 24 May, 2017 1 commit
  11. 27 Apr, 2017 1 commit
  12. 21 Apr, 2017 1 commit
  13. 22 Mar, 2017 1 commit
  14. 21 Mar, 2017 1 commit
  15. 14 Mar, 2017 1 commit
  16. 08 Nov, 2016 1 commit
  17. 23 Oct, 2016 1 commit
  18. 20 Jul, 2016 1 commit
    • Dragos Tiselice's avatar
      Added backgroundImage to CircleAvatar. · 83f37246
      Dragos Tiselice authored
      In order to have an efficient way to display clipped avatars,
      backgroundImage was added inside of the container's BoxDecoration.
      Fixes #4964. This commit also fixes #4567 where the radius property
      actually sets the diamater.
      83f37246
  19. 16 May, 2016 2 commits
  20. 08 Apr, 2016 1 commit
  21. 01 Apr, 2016 1 commit
  22. 31 Mar, 2016 1 commit
  23. 18 Mar, 2016 2 commits
  24. 14 Mar, 2016 1 commit
  25. 12 Mar, 2016 1 commit
  26. 23 Feb, 2016 1 commit
  27. 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
  28. 08 Dec, 2015 1 commit
    • Ian Hickson's avatar
      Make BoxDecoration replaceable. · 2afa87df
      Ian Hickson authored
      Factor out a reusable interface called Decoration from BoxDecoration.
      
      Make all the consumers of BoxDecoration and the erstwhile BoxPainter
      into consumers of Decoration.
      
      Make a BoxPainter be something you get from a Decoration, rather than
      something to which you pass a BoxDecoration.
      
      Rename Shape to BoxShape now that it's documented specifically as
      applying to boxes.
      
      Move EdgeDims to its own file.
      
      Move FractionalOffset up so that it's with the other helper classes in
      its file rather than alone at the end.
      
      Minor change to RenderClipOval's hit testing to avoid taking an
      unnecessary square root.
      
      Rename BoxDecorationPosition to DecorationPosition since
      RenderDecoratedBox now takes any Decoration.
      
      Implement hit testing for rounded rects.
      
      Rename AnimatedBoxDecorationValue to AnimatedDecorationValue, and make
      it support lerping across any Decoration (by deferring to the objects
      involved).
      2afa87df
  29. 19 Oct, 2015 1 commit
    • Adam Barth's avatar
      Add a MaterialList · 284eaa9c
      Adam Barth authored
      A MaterialList understands the sizing, padding, and scrollbar features of
      Material Design lists.
      
      Also, add CircleAvatar for showing the circular avatars that are commonly used
      in material lists.
      284eaa9c