circleAvatar method

CircleAvatar circleAvatar({
  1. Color? backgroundColor = Colors.transparent,
  2. double radius = 30.0,
  3. ImageErrorListener? onBackgroundImageError,
  4. ImageErrorListener? onForegroundImageError,
  5. Color? foregroundColor,
  6. double? minRadius,
  7. double? maxRadius,
})

Create a circle avatar.

Implementation

CircleAvatar circleAvatar({
  Color? backgroundColor = Colors.transparent,
  double radius = 30.0,
  ImageErrorListener? onBackgroundImageError,
  ImageErrorListener? onForegroundImageError,
  Color? foregroundColor,
  double? minRadius,
  double? maxRadius,
}) {
  return CircleAvatar(
    radius: radius,
    backgroundImage: image,
    backgroundColor: Colors.transparent,
    onBackgroundImageError: onBackgroundImageError,
    onForegroundImageError: onForegroundImageError,
    foregroundColor: foregroundColor,
    minRadius: minRadius,
    maxRadius: maxRadius,
  );
}