AppAvatar.initials constructor
const
AppAvatar.initials({
- Key? key,
- required String? initials,
- AppAvatarSize size = AppAvatarSize.medium,
- AppAvatarShape shape = AppAvatarShape.circle,
- Color? backgroundColor,
- VoidCallback? onTap,
- Color? textColor,
- double? borderRadius,
- Color? borderColor,
- double? borderWidth,
- Color? shadowColor,
- double? elevation,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- 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;