avatarBoxConstraints property

  1. @override
BoxConstraints? avatarBoxConstraints
final

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
link

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

Implementation

@override
final BoxConstraints? avatarBoxConstraints;