UserAvatarBackground
Component that displays a user avatar and a background that reflects the avatar.
Parameters
Modifier used for styling.
The URL of the image to be displayed. Usually User.image.
The name to be used for the initials fallback. Usually User.name.
The shape of the avatar. CircleShape
by default.
The size of the avatar.
The scale rule used for the image. Crop
by default.
The image content description for accessibility. Null
by default.
The image size to be requested. Original size by default.
Placeholder image to be displayed while loading the remote image.
Placeholder image to be displayed in Compose previews (IDE).
The TextStyle to be used for the initials text fallback. The fontSize
, fontFamily
and fontWeight
properties are used. If the font size is too large, it will be gradually decreased automatically.
Offset to be applied to the initials text.