ScrollState

@Stable
class ScrollState(initial: Int = 0)

The scroll position of verticalScroll or horizontalScroll.

Constructors

Link copied to clipboard
constructor(initial: Int = 0)

Properties

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

The largest value, which shows the end of the content.

Link copied to clipboard
var value: Int

How many rows or columns the content is scrolled by.

Link copied to clipboard

The number of rows or columns visible at once.

Functions

Link copied to clipboard
fun scrollBy(delta: Int)
Link copied to clipboard
fun scrollTo(value: Int)
Link copied to clipboard

Scrolls to the end, also once the content becomes longer during the next layout.