ProfileAvatar constructor
const
ProfileAvatar({
- Key? key,
- XFile? image,
- String? imageUrl,
- bool allowEdit = false,
- OnImageChanged? onImageChanged,
- double radius = 20,
- void onImageRemoved()?,
- Color? backgroundColor,
- Widget addImageIcon = const Icon(Icons.add_a_photo_outlined),
- Alignment addImageIconAlignment = Alignment.bottomRight,
- Widget removeImageIcon = const Icon(Icons.close),
- Alignment removeImageIconAlignment = Alignment.topRight,
- OctoProgressIndicatorBuilder? loadingBuilder,
- GetImageSource? getImageSource,
- GetPreferredCameraDevice? getPreferredCameraDevice,
- 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,
});