Rendering flash when calling scrollToItem and animateScrollToItem on the LazyColumn's state
We've noticed quick flash with all items in the List after calling state.scrollToItem or state.animateScrollToItem that is only present when the item is wrapped in a ReorderableItem. I've been able to reproduce this with the Simple Reorderable LazyColumn demo by adding top/bottom buttons outside of the list that invoke scrollToItem
// Changes made to `SimpleReorderableLazyColumnScreen`
Column {
Row {
Button(onClick = {
scope.launch {
lazyListState.scrollToItem(list.lastIndex)
}
}) {
Text("scroll to bottom")
}
Button(onClick = {
scope.launch {
lazyListState.scrollToItem(0)
}
}) {
Text("scroll to top")
}
}
LazyColumn(...) { ... }
}
By commenting out ReorderableItem(reorderableLazyColumnState, item.id), the flashing disappears.
| commented out ReorderableItem | flash with ReorderableItem |
|---|---|
Same issue. Temporarily "solved" by rolling back to version 2.3.3.
The problem disappeared after the BOM upgrade to 2025.04.01 (from 2025.04.00).
@impalex what BOM did you upgrade?
@dsrees https://mvnrepository.com/artifact/androidx.compose/compose-bom Upgrading from 2025.04.00 to 2025.04.01 fixed the problem (for me, at least).
seems solved?