animateSizeChanges property

bool animateSizeChanges
final

Whether a change of the button's size eases to the new size instead of jumping, for example when a shrink-wrapped button gets a wider label.

The new label shows at once, whole, and the button grows or shrinks around it over sizeAnimationDuration with sizeAnimationCurve. Defaults to false.

Implementation

final bool animateSizeChanges;