scrollAway

fun Modifier.scrollAway(scalingLazyColumnState: ScalingLazyColumnState): Modifier

Scroll an item vertically in/out of view based on a ScalingLazyListState. Typically used to scroll a TimeText item out of view as the user starts to scroll a ScalingLazyColumn of items upwards and bring additional items into view.

Parameters

scalingLazyColumnState

The list config.


fun Modifier.scrollAway(scrollableState: () -> ScrollableState?): Modifier

Scroll an item vertically in/out of view based on a ScrollState. Typically used to scroll a TimeText item out of view as the user starts to scroll a vertically scrollable Column of items upwards and bring additional items into view.

Parameters

scrollState

The ScrollState to used as the basis for the scroll-away.

offset

Adjustment to the starting point for scrolling away. Positive values result in the scroll away starting later.