ProfileAvatar constructor

const ProfileAvatar({
  1. Key? key,
  2. XFile? image,
  3. String? imageUrl,
  4. bool allowEdit = false,
  5. OnImageChanged? onImageChanged,
  6. double radius = 20,
  7. void onImageRemoved()?,
  8. Color? backgroundColor,
  9. Widget addImageIcon = const Icon(Icons.add_a_photo_outlined),
  10. Alignment addImageIconAlignment = Alignment.bottomRight,
  11. Widget removeImageIcon = const Icon(Icons.close),
  12. Alignment removeImageIconAlignment = Alignment.topRight,
  13. OctoProgressIndicatorBuilder? loadingBuilder,
  14. GetImageSource? getImageSource,
  15. GetPreferredCameraDevice? getPreferredCameraDevice,
  16. ImageErrorWidgetBuilder? errorBuilder,
})

Implementation

const ProfileAvatar({
  super.key,
  this.image,
  this.imageUrl,
  this.allowEdit = false,
  this.onImageChanged,
  this.radius = 20,
  this.onImageRemoved,
  this.backgroundColor,
  this.addImageIcon = const Icon(Icons.add_a_photo_outlined),
  this.addImageIconAlignment = Alignment.bottomRight,
  this.removeImageIcon = const Icon(Icons.close),
  this.removeImageIconAlignment = Alignment.topRight,
  this.loadingBuilder,
  this.getImageSource,
  this.getPreferredCameraDevice,
  this.errorBuilder,
});