Avatar constructor
const
Avatar({
- Key? key,
- AvatarType type = AvatarType.placeholder,
- ImageProvider<
Object> ? image, - String? imageUrl,
- String? initials,
- IconData? icon = Icons.face_5_outlined,
- Widget? iconWidget,
- double size = 32.0,
- BorderRadius? borderRadius,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? borderColor,
- double borderWidth = 1.0,
- VoidCallback? onTap,
- String? semanticLabel,
Creates an Avatar instance.
Implementation
const Avatar({
super.key,
this.type = AvatarType.placeholder,
this.image,
this.imageUrl,
this.initials,
this.icon = Icons.face_5_outlined,
this.iconWidget,
this.size = 32.0,
this.borderRadius,
this.backgroundColor,
this.foregroundColor,
this.borderColor,
this.borderWidth = 1.0,
this.onTap,
this.semanticLabel,
});