Object

VerticalListDefaults

Contains the default values used by VerticalList.

Source set: Android
public object VerticalListDefaults

Contains the default values used by VerticalList.

Properties

itemSpacing

Source set: Android
public val itemSpacing: Dp

Recommended value for the distance between items.

ScrimMaxHeight

Source set: Android
public val ScrimMaxHeight: Dp

The maximum height of the fade effects on the sides of the list.

contentPadding

Source set: Android
public val contentPadding: PaddingValues

Recommended content padding values for lists without a title.

contentPaddingWithTitle

Source set: Android
public val contentPaddingWithTitle: PaddingValues

Recommended content padding values for lists with a title.

verticalArrangement

Source set: Android
public val verticalArrangement: Arrangement.Vertical

Recommended values for the vertical arrangement.

Functions

flingBehavior

@Composable
public fun flingBehavior(state: ListState): FlingBehavior

Creates and remembers the default fling behavior for a VerticalList that aligns the focus position with list scroll.

Parameters

state The ListState to observe for layout and focus information.

Returns

A FlingBehavior instance that provides focus-aware snapping.

Last updated: