Avatar

fun Avatar(profile: Profile, size: Dp, modifier: Modifier = Modifier, avatarQueryOptions: AvatarQueryOptions? = null, forceRefresh: Boolean = false)

Avatar is a composable that displays a user's avatar.

Parameters

profile

The user's profile information

size

The size of the avatar

modifier

Composable modifier

avatarQueryOptions

Options to customize the avatar query

forceRefresh

While this is true, we'll force the refresh of the avatar in every recomposition. When false, we'll use the default URL for that profile (without cache buster) to fetch the avatar.


fun Avatar(state: ComponentState<Profile>, size: Dp, modifier: Modifier = Modifier, avatarQueryOptions: AvatarQueryOptions? = null, forceRefresh: Boolean = false)

Avatar is a composable that displays a user's avatar.

Parameters

state
size

The size of the avatar

modifier

Composable modifier

avatarQueryOptions

Options to customize the avatar query

forceRefresh

While this is true, we'll force the refresh of the avatar in every recomposition