ScrollingList

data class ScrollingList(val spacing: Dp = 4.dp, val direction: ScrollingDirection = ScrollingDirection.TOWARDS_TOP, val duration: Long = 3000, val repeat: Repeat = Repeat.Continuous, val onComplete: () -> Unit = {}) : ListDisplayStyle(source)

A scrolling list style that scrolls items in a specified direction with spacing.

Constructors

Link copied to clipboard
constructor(spacing: Dp = 4.dp, direction: ScrollingDirection = ScrollingDirection.TOWARDS_TOP, duration: Long = 3000, repeat: Repeat = Repeat.Continuous, onComplete: () -> Unit = {})

Properties

Link copied to clipboard

The direction in which the list scrolls (e.g., towards top).

Link copied to clipboard

Duration in milliseconds for the scrolling animation.

Link copied to clipboard
val onComplete: () -> Unit

Callback invoked when the scrolling animation completes.

Link copied to clipboard

Defines how often the scrolling animation repeats.

Link copied to clipboard
val spacing: Dp

The space between list items, defined in Dp.

Functions

Link copied to clipboard
open override fun toString(): String