← Back to Foundation
verticalScroll
Modifier
in
Foundation
. Since 0.1.0-dev15Overview
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
Name | Description |
---|---|
state | state of the scroll |
enabled | whether or not scrolling via touch input is enabled |
flingBehavior | logic describing fling behavior when drag has finished with velocity. If null , default from ScrollableDefaults.flingBehavior will be used. |
reverseScrolling | reverse the direction of scrolling, when true , 0 ScrollState.value will mean bottom, when false , 0 ScrollState.value will mean to |
Next ComponentBaseTextField →