GoogleUserCircleAvatar constructor
const
GoogleUserCircleAvatar({
- required GoogleIdentity identity,
- String? placeholderPhotoUrl,
- Color? foregroundColor,
- Color? backgroundColor,
Creates a new widget based on the specified identity
.
If identity
does not contain a photoUrl
and placeholderPhotoUrl
is
specified, then the given URL will be used as the user's photo URL. The
URL must be able to handle a sizeDirective path segment.
If identity
does not contain a photoUrl
and placeholderPhotoUrl
is
not specified, then the widget will render the user's first initial
in place of a profile photo, or a default profile photo if the user's
identity does not specify a displayName
.
Implementation
const GoogleUserCircleAvatar({
required this.identity,
this.placeholderPhotoUrl,
this.foregroundColor,
this.backgroundColor,
});