https://kotlinlang.org logo
#compose
Title
# compose
n

Nicolai

11/06/2023, 6:24 PM
Hey guys, I’m trying to use a LazyColumn to create a fullscreen vertical swipeable image. However, the flingbehavior is waaaay to aggressive and I only want it to snap 1 item at a time. Is there an easy way i’m missing to adjust the velocity?
Copy code
LazyColumn(
        modifier = Modifier.fillMaxSize(),
        state = listState,
        flingBehavior = rememberSnapFlingBehavior(lazyListState = listState)
    ) {
        items(itemCount) { index ->
            content(index)
            if (index == itemCount - 1) {
                loadMoreItems()
            }
        }
    }