avatarBoxConstraints property

  1. @override
BoxConstraints? avatarBoxConstraints

Optional size constraints for the avatar.

When unspecified, defaults to a minimum size of chip height or label height (whichever is greater) and a padding of 8.0 pixels on all sides.

The default constraints ensure that the avatar is accessible. Specifying this parameter enables creation of avatar smaller than the minimum size, but it is not recommended.

This sample shows how to use avatarBoxConstraints to adjust avatar size constraints

To create a local project with this code sample, run:
flutter create --sample=chip.ChipAttributes.avatarBoxConstraints.1 mysample


final BoxConstraints? avatarBoxConstraints;