• 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
circle_border_test.dart 1.28 KB