Make local image behave as remove images.

This commit is contained in:
Vitor Pamplona
2023-11-20 15:52:18 -05:00
parent e45f02c110
commit 5a9d6929e5

View File

@ -22,7 +22,6 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.height
@ -294,11 +293,13 @@ private fun LocalImageView(
mainImageModifier mainImageModifier
.widthIn(max = maxWidth) .widthIn(max = maxWidth)
.heightIn(max = maxHeight) .heightIn(max = maxHeight)
/*
.run { .run {
aspectRatio(content.dim)?.let { ratio -> aspectRatio(content.dim)?.let { ratio ->
this.aspectRatio(ratio, false) this.aspectRatio(ratio, false)
} ?: this } ?: this
} }
*/
} }
val contentScale = remember { val contentScale = remember {