AvatarWidget constructor

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