• 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
chip_test.dart 16.1 KB