ModulaAvatar constructor
const
ModulaAvatar({
- Key? key,
- ModulaAvatarShape shape = ModulaAvatarShape.circle,
- double size = 48,
- double borderRadius = 8,
- Color backgroundColor = Colors.grey,
- Color foregroundColor = Colors.white,
- String? imageUrl,
- String? initials = '+',
- IconData? icon,
- Widget? badge,
- Alignment badgeAlignment = Alignment.bottomRight,
- bool showBorder = false,
- Color borderColor = Colors.white,
- double borderWidth = 2,
- ModulaAvatarType type = ModulaAvatarType.icon,
Implementation
const ModulaAvatar({
super.key,
this.shape = ModulaAvatarShape.circle,
this.size = 48,
this.borderRadius = 8,
this.backgroundColor = Colors.grey,
this.foregroundColor = Colors.white,
this.imageUrl,
this.initials = '+',
this.icon,
this.badge,
this.badgeAlignment = Alignment.bottomRight,
this.showBorder = false,
this.borderColor = Colors.white,
this.borderWidth = 2,
this.type = ModulaAvatarType.icon,
});