Quality
This commit is contained in:
parent
71186c9dd7
commit
7d7e368bd0
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
* 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
|
* @param avatarDataList the avatars to render. Note: they will all be rendered, the caller may
|
||||||
* want to limit the list size
|
* want to limit the list size
|
||||||
|
* @param avatarType the type of avatars to render
|
||||||
* @param modifier Jetpack Compose modifier
|
* @param modifier Jetpack Compose modifier
|
||||||
* @param overlapRatio the overlap ration. When 0f, avatars will render without overlap, when 1f
|
* @param overlapRatio the overlap ration. When 0f, avatars will render without overlap, when 1f
|
||||||
* only the first avatar will be visible
|
* only the first avatar will be visible
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ internal fun InitialOrImageAvatar(
|
||||||
hideAvatarImage: Boolean,
|
hideAvatarImage: Boolean,
|
||||||
forcedAvatarSize: Dp?,
|
forcedAvatarSize: Dp?,
|
||||||
avatarShape: Shape,
|
avatarShape: Shape,
|
||||||
modifier: Modifier,
|
contentDescription: String?,
|
||||||
contentDescription: String?
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
when {
|
when {
|
||||||
avatarData.url.isNullOrBlank() || hideAvatarImage -> InitialLetterAvatar(
|
avatarData.url.isNullOrBlank() || hideAvatarImage -> InitialLetterAvatar(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue