1. 31 Aug, 2018 1 commit
  2. 02 Aug, 2018 1 commit
  3. 27 Jul, 2018 1 commit
  4. 23 Jul, 2018 1 commit
  5. 16 Jul, 2018 2 commits
  6. 09 Jul, 2018 1 commit
  7. 03 Jul, 2018 2 commits
  8. 05 Jun, 2018 1 commit
  9. 31 May, 2018 1 commit
  10. 18 May, 2018 1 commit
    • Greg Spencer's avatar
      Speed up AnimatedSwitcher. (#17265) · 1f5fcb74
      Greg Spencer authored
      This optimizes the AnimatedSwitcher so that it tags the right widget with its keyed subtree, and avoids rebuilding the transition unnecessarily.
      
      This significantly improves the performance of Chips (which uses AnimatedSwitcher to swap out it's avatar and delete icon children).
      1f5fcb74
  11. 03 May, 2018 1 commit
  12. 16 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Rename AnimatedChildSwitcher to AnimatedSwitcher (#16551) · 6c049ec2
      Greg Spencer authored
      We don't really like the name AnimatedChildSwitcher, and we think that AnimatedSwitcher might be better (since the Child part is redundant). We also considered AnimatedChild, AnimatedTransition and AnimatedReplacement (among others).
      
      Nothing in here besides a rename.
      6c049ec2
  13. 12 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Adding ChipTheme, ChipThemeData, and some more tests. (#16447) · 4dbbf678
      Greg Spencer authored
      This converts the chips to use a ChipThemeData to get most of their customization values from (if not overridden by specific arguments to the chip constructors), and to have the base ThemeData contain one of these. It also adds the ChipTheme widget that will allow overriding the theme for a particular subtree in the widget hierarchy.
      
      Added tests for both, and just more tests in general for the Chips.
      4dbbf678
  14. 10 Apr, 2018 2 commits
  15. 05 Apr, 2018 1 commit
  16. 04 Apr, 2018 1 commit
  17. 25 Mar, 2018 1 commit
  18. 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
  19. 04 Dec, 2017 1 commit
  20. 02 Nov, 2017 1 commit
    • Greg Spencer's avatar
      Adding proper accommodation for textScaleFactor in chips, and StadiumBorder border. (#12533) · 05e10633
      Greg Spencer authored
      In order to allow chips to be properly drawn when they expand in size (without
      using IntrinsicHeight), I needed a BoxDecoration shape that would be dependent
      upon the rendered height of the widget. This seemed to be pretty generally
      useful, so I added a new ShapeDecoration called StadiumBorder. It uses the
      minimum dimension to adjust the BorderRadius of a rounded rect in the shape
      decoration.
      
      I also converted some uses of BoxShape to be case statements, updated the
      chips to use the StadiumBorder decoration, and updated some of the metrics to match
      the Material spec, as well as implementing lerping to and from StadiumBorder.
      05e10633
  21. 28 Aug, 2017 1 commit
    • Ian Hickson's avatar
      RTL: Padding, Flex (#11709) · f235a2c1
      Ian Hickson authored
      * Introduce a Directionality inherited widget which sets the ambient LTR vs RTL mode (defaulting to null, which means you cannot use directionality-influenced values).
      
      * Make it possible to configure Padding (including Container.padding and Container.margin) using a directionality-agnostic EdgeInsets variant.
      
      * Provide textDirection and verticalDirection controls on Row and Column to make them RTL-aware.
      
      * Introduce a variant of FractionalOffset based on the EdgeInsets variant. Not yet actually used.
      
      * Fix all the tests that depended on Row defaulting to LTR.
      f235a2c1
  22. 12 Aug, 2017 1 commit
    • ameiyil's avatar
      Wrap the label widget of the Chip in a Flexible. (#11523) (#11554) · b156a0f0
      ameiyil authored
      * Wrap the label widget of the Chip in a Flexible. (#11523)
      
      * This allows the Chip to constrain the size of its content after taking into account the space occupied by the avatar and delete icon (if they are present)
      
      * Adding unit tests to evaluate correct size constraints of the Chip widget's label. (#11523)
      
      * Minor change in formatting.
      
      * Adjust function formatting.
      b156a0f0
  23. 05 Aug, 2017 1 commit
    • paolosoares's avatar
      Adds more customization options to the Chip widget (#11498) · 4da5e9b2
      paolosoares authored
      * Adds more customization options to the Chip widget
      
      Includes:
      - Custom Tooltip message for the delete button;
      - Custom background color for the chip
      - Custom delete icon color
      - Custom label text style
      
      * Adds missing type annotations to tests and improves documentation.
      
      * Tweaks labelStyle field documentation
      4da5e9b2
  24. 23 Jun, 2017 1 commit
  25. 24 May, 2017 1 commit
  26. 21 May, 2017 1 commit
  27. 27 Apr, 2017 1 commit
  28. 21 Mar, 2017 1 commit
  29. 04 Mar, 2017 1 commit
  30. 31 Jan, 2017 1 commit
  31. 09 Dec, 2016 1 commit
  32. 23 Oct, 2016 1 commit
  33. 29 Jul, 2016 1 commit
    • Dragoș Tiselice's avatar
      Added BorderRadius. (#5072) · f3444fcf
      Dragoș Tiselice authored
      * Added custom radii to RRect.
      
      This is the first commit towads an implementation of
      MergeableMaterial. It adds custom radii to RRect.
      
      * Renamed RRect constructors and added BorderRadius.
      
      BorderRadius is a class similar to EdgeInsets that lets you define
      all rounded corners of a rounded rectangle easily.
      f3444fcf
  34. 21 Jun, 2016 2 commits
    • Hans Muller's avatar
    • 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
  35. 16 May, 2016 2 commits