AtomicAvatar constructor
const
AtomicAvatar({
- Key? key,
- ImageProvider<
Object> ? image, - String? name,
- IconData? icon,
- AtomicAvatarSize size = AtomicAvatarSize.medium,
- AtomicAvatarShape shape = AtomicAvatarShape.circle,
- Color? backgroundColor,
- Color? foregroundColor,
- Border? border,
- AtomicAvatarShadow shadow = AtomicAvatarShadow.none,
- Widget? badge,
- VoidCallback? onTap,
- IconData fallbackIcon = Icons.person,
Implementation
const AtomicAvatar({
super.key,
this.image,
this.name,
this.icon,
this.size = AtomicAvatarSize.medium,
this.shape = AtomicAvatarShape.circle,
this.backgroundColor,
this.foregroundColor,
this.border,
this.shadow = AtomicAvatarShadow.none,
this.badge,
this.onTap,
this.fallbackIcon = Icons.person,
});