TextAvatar constructor

const TextAvatar({
  1. Key? key,
  2. required String text,
  3. double size = 48,
  4. AvatarShape shape = AvatarShape.circle,
  5. double? borderRadius,
  6. int maxInitials = 2,
  7. InitialsMode initialsMode = InitialsMode.words,
  8. String initialsBuilder(
    1. String name
    )?,
  9. Color? baseColor,
  10. Map<String, Color>? includeColor,
  11. double backgroundOpacity = 0.2,
  12. double textOpacity = 1.0,
  13. bool upperCase = true,
  14. bool autoFontSize = true,
  15. TextStyle? style,
  16. @Deprecated('Use baseColor with backgroundOpacity instead') Color? backgroundColor,
  17. @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,
});