AvatarWidget constructor
const
AvatarWidget({
- Key? key,
- String? imageUrl,
- ImageProvider<
Object> ? imageProvider, - String? text,
- IconData? icon,
- AvatarSize size = AvatarSize.medium,
- AvatarShape shape = AvatarShape.circle,
- Color? backgroundColor,
- Color? foregroundColor,
- VoidCallback? onTap,
Implementation
const AvatarWidget({
super.key,
this.imageUrl,
this.imageProvider,
this.text,
this.icon,
this.size = AvatarSize.medium,
this.shape = AvatarShape.circle,
this.backgroundColor,
this.foregroundColor,
this.onTap,
});