AvatarIcon
abstract fun AvatarIcon(size: Dp, name: String, additionalData: ByteArray? = null, modifier: Modifier = Modifier)
A composable which renders an avatar icon.
The default implementation renders a colored circle with the two initials of the name in a random but predictable color.
Parameters
size
the size of the avatar.
name
the name of the avatar.
additionalData
optional additional data to use for calculating the color. This exists such that two avatars which the same name can get a different color.
modifier
a Modifier.