LazyColumnWithScrollbar
fun LazyColumnWithScrollbar(modifier: Modifier = Modifier, state: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, content: LazyListScope.() -> Unit)
A LazyColumn paired with a platform VerticalScrollbar aligned to its trailing edge.
Parameters
modifier
a Modifier applied to the outer container.
state
the LazyListState controlling and observing the list's scroll position.
contentPadding
padding around the whole content inside the scrollable viewport.
reverseLayout
reverse the direction of scrolling and layout.
verticalArrangement
vertical arrangement of the layout's children.
horizontalAlignment
horizontal alignment applied to the items.
flingBehavior
logic describing fling behavior.
userScrollEnabled
whether scrolling via user gestures is allowed.
content
a block describing the LazyListScope content.