John Nichol
08/11/2022, 3:39 PMste
08/11/2022, 3:42 PMvar items by remember {
mutableStateOf(List (20) { it })
}
.clickable {
items = items.toMutableList().apply {
add(removeAt(0))
}
}
This will cause the LazyList
to snap to the bottom.John Nichol
08/11/2022, 3:45 PMste
08/11/2022, 3:46 PMChris Sinco [G]
08/11/2022, 5:41 PMBradleycorn
08/11/2022, 5:52 PMChris Sinco [G]
08/11/2022, 5:58 PMAndrey Kulikov
08/15/2022, 4:31 PMste
08/16/2022, 9:17 PMandroidx.compose.foundation.lazy
code so I could remove the snapping behavior (well, I would have done it anyway because of https://kotlinlang.slack.com/archives/CJLTWPH7S/p1654792126513769?thread_ts=1654780727.556209&cid=CJLTWPH7S).