ImageAvatar
fun ImageAvatar(painter: Painter, modifier: Modifier = Modifier, shape: Shape = ChatTheme.shapes.avatar, contentDescription: String? = null, onClick: () -> Unit? = null)
Renders an image the painter provides. It allows for customization, uses the 'avatar' shape from ChatTheme.shapes for the clipping and exposes an onClick action.
Parameters
painter
The painter for the image.
modifier
Modifier for styling.
shape
The shape of the avatar.
contentDescription
Description of the image.
onClick
OnClick action, that can be nullable.