remembering size of the robohash picture

This commit is contained in:
Vitor Pamplona
2023-05-25 18:25:47 -04:00
parent 310a93ef29
commit aed7f46ca0
@@ -34,7 +34,9 @@ fun RobohashAsyncImage(
) { ) {
val context = LocalContext.current val context = LocalContext.current
val size = with(LocalDensity.current) { val size = with(LocalDensity.current) {
robotSize.roundToPx() remember {
robotSize.roundToPx()
}
} }
val imageRequest = remember(robotSize, robot) { val imageRequest = remember(robotSize, robot) {