Denis Ismailaj
04/26/2021, 6:12 PMDenis Ismailaj
04/26/2021, 6:12 PM@Composable
fun BugRepro() {
val images = listOf(
Icons.Default.Home,
Icons.Default.LocalActivity
)
var index by remember { mutableStateOf(1) }
Image(
imageVector = images[index],
contentDescription = null,
modifier = Modifier
.width((50 + index * 50).dp) // Just so they're different sizes
.height(76.dp)
)
LaunchedEffect(key1 = Unit) {
delay(1000)
index--
delay(1000)
index++
}
}
Denis Ismailaj
04/26/2021, 6:13 PMDenis Ismailaj
04/26/2021, 6:13 PMkey
is a valid workaround.Timo Drick
04/27/2021, 8:03 AM