TextAvatar constructor
const
TextAvatar({
- Key? key,
- required String text,
- double size = 48,
- AvatarShape shape = AvatarShape.circle,
- double? borderRadius,
- int maxInitials = 2,
- InitialsMode initialsMode = InitialsMode.words,
- String initialsBuilder(
- String name
- Color? baseColor,
- Map<
String, Color> ? includeColor, - double backgroundOpacity = 0.2,
- double textOpacity = 1.0,
- bool upperCase = true,
- bool autoFontSize = true,
- TextStyle? style,
- @Deprecated('Use baseColor with backgroundOpacity instead') Color? backgroundColor,
- @Deprecated('Use shape and borderRadius instead') double? radius,
Implementation
const TextAvatar({
super.key,
required this.text,
this.size = 48,
this.shape = AvatarShape.circle,
this.borderRadius,
this.maxInitials = 2,
this.initialsMode = InitialsMode.words,
this.initialsBuilder,
this.baseColor,
this.includeColor,
this.backgroundOpacity = 0.2,
this.textOpacity = 1.0,
this.upperCase = true,
this.autoFontSize = true,
this.style,
@Deprecated('Use baseColor with backgroundOpacity instead')
this.backgroundColor,
@Deprecated('Use shape and borderRadius instead') this.radius,
});