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 optimal use of available space.

Dp

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

Arrangement.Vertical

Recommended values for the spacing between items.

Public functions

flingBehavior

Added in 1.0.0-alpha04
@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-alpha04
val ContentPaddingPaddingValues

Recommended content padding values for optimal use of available space.

ScrimMaxHeight

val ScrimMaxHeightDp

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

VerticalArrangement

Added in 1.0.0-alpha04
val VerticalArrangementArrangement.Vertical

Recommended values for the spacing between items.