4

When I have a large list of items, OR when i don't have large list of items but each with component renders slowly, the rememberLazyListState.scrollToItem OR rememberLazyListState.animateScrollToItem just don't seem to work in Jetpack Compose LazyColumn. The scroll falls at a random place... I was hoping it'd skip or wait for prev children to render so it can compute the scroll position but it doesn't. Alternative to this would be to build a loop and check firstVisibleItemIndex until it stops increasing but that feels like a major hack!

TatiOverflow
  • 1,071
  • 2
  • 16
  • 23

0 Answers0