GrxUserAvatar constructor

GrxUserAvatar({
  1. Key? key,
  2. String? text,
  3. Uri? uri,
  4. File? imageFile,
  5. double radius = 25.0,
  6. Color textColor = GrxColors.neutrals,
  7. Object? heroTag,
  8. bool openPreview = true,
  9. bool editable = false,
  10. Widget? avatarPickerButton,
  11. void onPickAvatar(
    1. File?
    )?,
  12. bool isLoading = false,
  13. 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.isLoading = false,
  final Color? backgroundColor,
}) : backgroundColor = backgroundColor ?? GrxColors.primary.shade400;