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

Dp

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

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.

Arrangement.Vertical

Recommended values for the vertical arrangement.

Public functions

flingBehavior

Added in 1.0.0-alpha09
@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

ScrimMaxHeight

val ScrimMaxHeightDp

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

contentPadding

val contentPaddingPaddingValues

Recommended content padding values for lists without a title.

contentPaddingWithTitle

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.

verticalArrangement

val verticalArrangementArrangement.Vertical

Recommended values for the vertical arrangement.