Serhii K
03/10/2026, 1:00 PMLazyList, it does not seem very reliable:
1. Sometimes scrolling does not happen, probably because the list is still being laid out/drawn (probably).
2. Sometimes it does scroll, but the animation looks ugly.
Does anyone have ideas or a good example of how to implement this properly?Orb
03/13/2026, 11:34 AMSerhii K
03/13/2026, 11:38 AMval totalItems = listState.layoutInfo.totalItemsCount
val lastVisible = listState.layoutInfo.visibleItemsInfo.lastOrNull()
val isNearBottom = lastVisible == null || lastVisible.index >= totalItems - 1
if (isNearBottom && totalItems > 0) {
listState.requestScrollToItem(totalItems - 1)
}
but it works so so.