android-jetpack-compose-lazy-column
Jetpack Compose LazyColumn programmatically scroll to Item
The LazyListState supports the scroll position via the scrollToItem() function, which ‘immediately’ snaps the scroll position, animateScrollToItem() which scrolls using an animation Something like: val listState = rememberLazyListState() // Remember a CoroutineScope to be able to launch val coroutineScope = rememberCoroutineScope() LazyColumn(state = listState) { // … } Button ( onClick = { coroutineScope.launch { … Read more