GroupAvatarStyle class

Constructors

GroupAvatarStyle({double size = 56.0, GroupAvatarMode mode = GroupAvatarMode.aligned, List<double> stackedReductionFactor = const [1.0, 1.25, 1.4, 1.5], Border? stackedBorder, GroupAvatarShape shape = GroupAvatarShape.rectangle, double borderRadius = 20.0, bool withSeparator = false, Color? separatorColor, double separatorThickness = 1.5})
const

Properties

borderRadius double
The Radius when shape == GroupAvatarShape.rectangle. Ignored if shape == GroupAvatarShape.circle.
final
hashCode int
The hash code for this object.
no setterinherited
mode GroupAvatarMode
The mode of your GroupAvatar. See GroupAvatarMode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorColor Color?
Ignored if withSeparator == false.
final
separatorThickness double
Ignored if withSeparator == false.
final
shape GroupAvatarShape
The shape of your GroupAvatar; When passing GroupAvatarShape.rectangle, you can also specify borderRadius
final
size double
The size of this widget.
final
stackedBorder Border?
The border for each loaded image. Only used with mode == GroupAvatarMode.stackedCircles. Usually you will want to pass something like this: Border.all(color: Theme.of(context).backgroundColor, width: 2.0). Default is no border.
final
stackedReductionFactor List<double>
Only used with mode == GroupAvatarMode.stackedCircles. Determines the size of each individual image, compared to the widget size. The list must have 4 values. Index 0 will be if the GroupAvatar only has 1 image. Index 1 for 2 images. Index 3 for 3 images. Index 4 for 4 images or more. The default is 1.0, 1.25, 1.4, 1.5, 1.0 resulting in size and 1.5 resulting in size/1.5.
final
withSeparator bool
Set to true if you wish to display a separator between avatars.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited