AvatarWidget constructor

const AvatarWidget({
  1. String? imageUrl,
  2. ImageProvider<Object>? imageProvider,
  3. String? text,
  4. IconData? icon,
  5. AvatarSize size = AvatarSize.medium,
  6. AvatarShape shape = AvatarShape.circle,
  7. Color? backgroundColor,
  8. Color? foregroundColor,
  9. VoidCallback? onTap,
  10. Key? key,
})

Creates an AvatarWidget.

Implementation

const AvatarWidget({
  this.imageUrl,
  this.imageProvider,
  this.text,
  this.icon,
  this.size = AvatarSize.medium,
  this.shape = AvatarShape.circle,
  this.backgroundColor,
  this.foregroundColor,
  this.onTap,
  super.key,
});