A CircleAvatar class represent the user.
Mostly used with a user profile image,in the absence of image.This image will be converted as a circle shape.
Background Image:
ircleAvatar(
radius: 50,
backgroundImage: AssetImage('images/aa.png'),
),
Background Image by Url:
CircleAvatar(
radius: 50,
backgroundImage: NetworkImage('URL of Image'),
)
Background color:
CircleAvatar(
radius: 50,
backgroundColor: Colors.redAccent,
)
Properties:
CircleAvatar(
radius: 50,
backgroundColor: Colors.redAccent,
)
The size of the avatar expresses the radius.it is half the diameter.both the value minRadius and maxRadius is radius.
maxRadius
Maximum size of Avatar.
CircleAvatar(
maxRadius: 50,
backgroundColor: Colors.redAccent,
)
minRadius
Minimum size of Avatar.
CircleAvatar(
minRadius: 50,
backgroundColor: Colors.redAccent,
)
Constructors
CircleAvatar({ key,
Widget child,
Color backgroundColor
, ImageProvide backgroundImage,
void onBackgroundImageError(dynamic exception, StackTrace stackTrace),
Color foregroundColor,
double radius,
double minRadius,
double maxRadius
});
Comments
Post a Comment