CamoAvatar
A person or entity: the app's image (Coil's AsyncImage, say; core loads no images), on top of initials from
name in a color picked from the name, or a person icon with no name. It's announced as name plus the
presence ("Dwiki Riyadi, online"); with no name it's decorative, and so it is in a CamoListItem's leading
slot, where the row already says the name.
API
- Kotlin
- Dart
public fun CamoAvatar(
modifier: Modifier = Modifier,
name: String? = null,
image: (@Composable () -> Unit)? = null,
size: AvatarSize = AvatarSize.Medium,
shape: AvatarShape? = null,
presence: Presence? = null,
)
| Name | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
name | String? | null |
image | (@Composable () -> Unit)? | null |
size | AvatarSize | AvatarSize.Medium |
shape | AvatarShape? | null |
presence | Presence? | null |
Design notes
Why CamoAvatar works this way, its states and its edge cases: contributor docs.