-
public final class ImageAvatarKt
-
-
Method Summary
Modifier and Type Method Description final static UnitImageAvatar(Painter painter, Modifier modifier, Shape shape, String contentDescription, Function0<Unit> onClick)Renders an image the painter provides. -
-
Method Detail
-
ImageAvatar
@Composable() final static Unit ImageAvatar(Painter painter, Modifier modifier, Shape shape, String contentDescription, Function0<Unit> onClick)
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.
-
-
-
-