Package 

Class ImageAvatarKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ImageAvatar(Painter painter, Modifier modifier, Shape shape, String contentDescription, Function0<Unit> onClick) Renders an image the painter provides.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.