VerticalCardListState

class VerticalCardListState(val scrollState: ScrollState, val model: VerticalCardListModel = VerticalCardListModel())

State object for VerticalCardList.

Use rememberVerticalCardListState to create an instance.

Parameters

scrollState

the scroll state for the list.

model

underlying platform-agnostic VerticalCardListModel.

Constructors

Link copied to clipboard
constructor(scrollState: ScrollState, model: VerticalCardListModel = VerticalCardListModel())

Properties

Link copied to clipboard

Whether to animate spatial transitions (like sliding cards) when entering this screen.

Link copied to clipboard

The current display order of the cards, tracked by identifier.

Link copied to clipboard

The current Y position of the dragged card.

Link copied to clipboard

The identifier of the card currently being dragged, if any.

Link copied to clipboard

Whether a drag operation just ended.

Link copied to clipboard

The identifier of the last focused card, used to preserve animations across navigation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether to show a dashed placeholder card when the card list is empty.

Link copied to clipboard

Whether the top content composable should be shown when no card is focused.

Link copied to clipboard

The measured height of the top content in pixels.

Link copied to clipboard

Trigger counter for requesting an in-place unfocus animation.

Functions

Link copied to clipboard
suspend fun unfocus()

Unfocuses the currently focused card with an animation.