Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
animateScrollToItem example
val listState = rememberLazyListState()
LaunchedEffect(Unit) {
delay(1000)
listState.animateScrollToItem(40)
}
LazyColumn(
state = listState
) {
items(100) {
Text(text = it.toString())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment