AppAvatar.initials constructor

const AppAvatar.initials({
  1. Key? key,
  2. required String? initials,
  3. AppAvatarSize size = AppAvatarSize.medium,
  4. AppAvatarShape shape = AppAvatarShape.circle,
  5. Color? backgroundColor,
  6. VoidCallback? onTap,
  7. Color? textColor,
  8. double? borderRadius,
  9. Color? borderColor,
  10. double? borderWidth,
  11. Color? shadowColor,
  12. double? elevation,
  13. EdgeInsetsGeometry? margin,
  14. EdgeInsetsGeometry? padding,
  15. TextStyle? textStyle,
})

Creates an avatar with initials.

Implementation

const AppAvatar.initials({
  super.key,
  required this.initials,
  this.size = AppAvatarSize.medium,
  this.shape = AppAvatarShape.circle,
  this.backgroundColor,
  this.onTap,
  this.textColor,
  this.borderRadius,
  this.borderColor,
  this.borderWidth,
  this.shadowColor,
  this.elevation,
  this.margin,
  this.padding,
  this.textStyle,
}) : imageUrl = null,
     icon = null,
     fit = BoxFit.cover,
     iconSize = null;