GrxUserAvatar constructor
GrxUserAvatar({
- Key? key,
- String? text,
- Uri? uri,
- File? imageFile,
- double radius = 25.0,
- Color textColor = GrxColors.neutrals,
- Object? heroTag,
- bool openPreview = true,
- bool editable = false,
- Widget? avatarPickerButton,
- void onPickAvatar(
- File?
- void onRemoveAvatar()?,
- bool isLoading = false,
- bool showBorder = false,
- Color? backgroundColor,
Implementation
GrxUserAvatar({
super.key,
this.text,
this.uri,
this.imageFile,
this.radius = 25.0,
this.textColor = GrxColors.neutrals,
this.heroTag,
this.openPreview = true,
this.editable = false,
this.avatarPickerButton,
this.onPickAvatar,
this.onRemoveAvatar,
this.isLoading = false,
this.showBorder = false,
final Color? backgroundColor,
}) : backgroundColor = backgroundColor ?? GrxColors.primary.shade400;