CircularProfileAvatar constructor

const CircularProfileAvatar({
  1. required String imageUrl,
  2. Key? key,
  3. Text initialsText = const Text(''),
  4. bool cacheImage = true,
  5. double radius = 50.0,
  6. double borderWidth = 0.0,
  7. Color borderColor = Colors.white,
  8. Color backgroundColor = Colors.white,
  9. double elevation = 0.0,
  10. bool showInitialTextAbovePicture = false,
  11. GestureTapCallback? onTap,
  12. Color foregroundColor = Colors.transparent,
  13. PlaceholderWidgetBuilder? placeHolder,
  14. LoadingErrorWidgetBuilder? errorWidget,
  15. ImageWidgetBuilder? imageBuilder,
  16. bool? animateFromOldImageOnUrlChange,
  17. ProgressIndicatorBuilder? progressIndicatorBuilder,
  18. Widget? child,
  19. BoxFit imageFit = BoxFit.cover,
  20. Map<String, String>? httpHeaders,
})

Implementation

const CircularProfileAvatar({
  required this.imageUrl,
  super.key,
  this.initialsText = const Text(''),
  this.cacheImage = true,
  this.radius = 50.0,
  this.borderWidth = 0.0,
  this.borderColor = Colors.white,
  this.backgroundColor = Colors.white,
  this.elevation = 0.0,
  this.showInitialTextAbovePicture = false,
  this.onTap,
  this.foregroundColor = Colors.transparent,
  this.placeHolder,
  this.errorWidget,
  this.imageBuilder,
  this.animateFromOldImageOnUrlChange,
  this.progressIndicatorBuilder,
  this.child,
  this.imageFit = BoxFit.cover,
  this.httpHeaders,
});