Package 

Class AvatarKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit Avatar(String imageUrl, String initials, Modifier modifier, Shape shape, TextStyle textStyle, Painter placeholderPainter, Painter errorPlaceholderPainter, String contentDescription, DpOffset initialsAvatarOffset, Function0<Unit> onClick) An avatar that renders an image from the provided image URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • Avatar

        @Composable() final static Unit Avatar(String imageUrl, String initials, Modifier modifier, Shape shape, TextStyle textStyle, Painter placeholderPainter, Painter errorPlaceholderPainter, String contentDescription, DpOffset initialsAvatarOffset, Function0<Unit> onClick)

        An avatar that renders an image from the provided image URL. In case the image URL was empty or there was an error loading the image, it falls back to the initials avatar.

        Parameters:
        imageUrl - The URL of the image to load.
        initials - The fallback text.
        modifier - Modifier for styling.
        shape - The shape of the avatar.
        textStyle - The text style of the initials text.
        placeholderPainter - The placeholder to render while loading is in progress.
        errorPlaceholderPainter - The placeholder to render in case of an error.
        contentDescription - Description of the image.
        initialsAvatarOffset - The initials offset to apply to the avatar.
        onClick - OnClick action, that can be nullable.