VerticalListDefaults


object VerticalListDefaults


Contains the default values used by VerticalList.

Summary

Public functions

FlingBehavior

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

Public properties

PaddingValues

Recommended content padding values for lists without a title.

PaddingValues

Recommended content padding values for lists with a title.

Dp

Recommended value for the distance between items.

Dp

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

Arrangement.Vertical

Recommended values for the vertical arrangement.

Public functions

flingBehavior

Added in 1.0.0-alpha06
@Composable
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: ListState

The ListState to observe for layout and focus information.

Returns
FlingBehavior

A FlingBehavior instance that provides focus-aware snapping.

Public properties

ContentPadding

Added in 1.0.0-alpha06
val ContentPaddingPaddingValues

Recommended content padding values for lists without a title.

ContentPaddingWithTitle

Added in 1.0.0-alpha06
val ContentPaddingWithTitlePaddingValues

Recommended content padding values for lists with a title.

ItemSpacing

val ItemSpacingDp

Recommended value for the distance between items.

See also
VerticalArrangement

for the default arrangement that uses this spacing.

ScrimMaxHeight

val ScrimMaxHeightDp

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

VerticalArrangement

Added in 1.0.0-alpha06
val VerticalArrangementArrangement.Vertical

Recommended values for the vertical arrangement.