AvatarGroup constructor
const
AvatarGroup({
- Key? key,
- required AlignmentGeometry alignment,
- required List<
AvatarWidget> children, - double? gap,
- Clip? clipBehavior,
Creates an AvatarGroup with custom alignment.
This is the base constructor that allows full control over the
overlapping behavior through the alignment parameter.
Parameters:
alignment(AlignmentGeometry, required): Direction of overlapchildren(Listgap(double?, optional): Spacing between avatarsclipBehavior(Clip?, optional): Clipping behavior
Example:
AvatarGroup(
alignment: Alignment(0.5, 0),
children: [Avatar(initials: 'A'), Avatar(initials: 'B')],
gap: 6.0,
);
Implementation
const AvatarGroup({
super.key,
required this.alignment,
required this.children,
this.gap,
this.clipBehavior,
});