This commit is contained in:
Benoit Marty
2025-06-24 09:06:39 +02:00
parent 71186c9dd7
commit 7d7e368bd0
2 changed files with 3 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ import kotlinx.collections.immutable.toImmutableList
* Draw a row of avatars (they must all have the same size), from start to end.
* @param avatarDataList the avatars to render. Note: they will all be rendered, the caller may
* want to limit the list size
* @param avatarType the type of avatars to render
* @param modifier Jetpack Compose modifier
* @param overlapRatio the overlap ration. When 0f, avatars will render without overlap, when 1f
* only the first avatar will be visible

View File

@@ -18,8 +18,8 @@ internal fun InitialOrImageAvatar(
hideAvatarImage: Boolean,
forcedAvatarSize: Dp?,
avatarShape: Shape,
modifier: Modifier,
contentDescription: String?
contentDescription: String?,
modifier: Modifier = Modifier,
) {
when {
avatarData.url.isNullOrBlank() || hideAvatarImage -> InitialLetterAvatar(