widgets/text_avatar library

Classes

TextAvatar
A text avatar with auto initials and tinted colors.
TextAvatarColors
Resolved background + text colors from a single seed color.

Enums

AvatarShape
Avatar container shape.
InitialsMode
How initials are derived from TextAvatar.text.

Constants

textAvatarColorData → const Map<String, Color>
Default letter → seed color palette.

Functions

resolveTextAvatarInitials(String text, {InitialsMode mode = InitialsMode.words, int maxInitials = 2, String initialsBuilder(String name)?}) String
resolveTextAvatarSeedColor(String text, String initials, {Color? baseColor, Map<String, Color>? includeColor, Map<String, Color> palette = textAvatarColorData}) Color
textAvatarHashColor(String input) Color
Stable fallback when no palette match exists.