nuhkoca
08/04/2022, 8:29 AMBox(modifier = Modifier.animateItemPlacement()) {
InstrumentView(instrument = item, selected = selectedIndex == i) {
selectedIndex = if (selectedIndex != i) i else -1
}
}
Petr Laštovička
08/04/2022, 3:44 PMLazyColumn
, try setting items()
parameter key. If normal Column
, soround your composables in key() {}
composable. Make sure keys are alway unique