ModulaAvatar constructor

const ModulaAvatar({
  1. Key? key,
  2. ModulaAvatarShape shape = ModulaAvatarShape.circle,
  3. double size = 48,
  4. double borderRadius = 8,
  5. Color backgroundColor = Colors.grey,
  6. Color foregroundColor = Colors.white,
  7. String? imageUrl,
  8. String? initials = '+',
  9. IconData? icon,
  10. Widget? badge,
  11. Alignment badgeAlignment = Alignment.bottomRight,
  12. bool showBorder = false,
  13. Color borderColor = Colors.white,
  14. double borderWidth = 2,
  15. 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,
});