Avatar

@Composable
fun Avatar(image: ImageSource?, text: String, modifier: Modifier = Modifier, showInitials: Boolean = false, size: Int = -1)

Creates a org.gnome.adw.Avatar that displays an image, with a generated fallback.

Parameters

image

The image used as the avatar.

text

Fallback source string for initials when image is null.

modifier

Compose Modifier for layout and styling.

showInitials

Replaces the initials with the default symbolic icon

size

The size of the avatar