• Greg Spencer's avatar
    Adding accomodations to ListTile for scaleTextFactor. (#12973) · c15c021e
    Greg Spencer authored
    This makes ListTile expand vertically when text is scaled, or really when whatever is placed inside it is larger than the available space.
    
    In order for UnconstrainedBox to be useful here, I needed for it to only unconstrain the child Row in one dimension, so I added a "constrainedAxis" parameter to the UnconstrainedBox.
    
    Also, changed one enum test to use a switch instead.
    
    I modified the ListTile test to be more representative of the intention of the spec: we were testing with text in the leading and trailing sections, and the design wants icons there. Because there was leading text, and the dense mode only changes the font size on the text lines, the leading text was propping up the minimum size of the tile, making so that the test wasn't really testing any changes in dense mode.
    c15c021e
list_tile.dart 14.9 KB