mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-29 17:00:40 +02:00
Make local image behave as remove images.
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user