PagedLazyColumn

fun PagedLazyColumn(modifier: Modifier = Modifier, onLoadBackward: () -> Unit = {}, onLoadForward: () -> Unit = {}, 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 that supports pagination. This will call onLoadBackward when the first item is reached and onLoadForward when the last item is reached.

Since

1.0.0

Parameters

modifier

The modifier to be applied to the view.

onLoadBackward

The handler for when the first item is reached.

onLoadForward

The handler for when the last item is reached.

state

The LazyListState to be used.

contentPadding

The padding to be applied to the content.

reverseLayout

Whether the layout should be reversed.

verticalArrangement

The vertical arrangement strategy.

horizontalAlignment

The horizontal alignment strategy.

flingBehavior

The fling behavior to be used.

userScrollEnabled

Whether the user can scroll.

content

The content to be displayed.