by @alexstyl
✉️ Leave your feedback

← Back to Foundation

verticalScroll

Modifier
in
Foundation
. Since 0.1.0-dev15

Overview

Examples

Community Notes

Modify element to allow to scroll vertically when height of the content is bigger than max constraints allow.

Overloads

verticalScroll

fun Modifier.verticalScroll(
    state: ScrollState,
    enabled: Boolean = true,
    flingBehavior: FlingBehavior? = null,
    reverseScrolling: Boolean = false
)

Parameters

NameDescription
statestate of the scroll
enabledwhether or not scrolling via touch input is enabled
flingBehaviorlogic describing fling behavior when drag has finished with velocity. If null, default from ScrollableDefaults.flingBehavior will be used.
reverseScrollingreverse the direction of scrolling, when true, 0 ScrollState.value will mean bottom, when false, 0 ScrollState.value will mean to
Next ComponentBaseTextField