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,8 +34,10 @@ fun RobohashAsyncImage(
) { ) {
val context = LocalContext.current val context = LocalContext.current
val size = with(LocalDensity.current) { val size = with(LocalDensity.current) {
remember {
robotSize.roundToPx() robotSize.roundToPx()
} }
}
val imageRequest = remember(robotSize, robot) { val imageRequest = remember(robotSize, robot) {
Robohash.imageRequest( Robohash.imageRequest(