verticalScrollWithScrollbar
Modify element to allow to scroll vertically when height of the content is bigger than max constraints allow. Also displays draggable scrollbar
Parameters
state of the scroll
state of the scrollbar
whether or not scrolling via touch input is enabled
logic describing fling behavior when drag has finished with velocity. If null
, default from ScrollableDefaults.flingBehavior will be used.
reverse the direction of scrolling, when true
, 0 ScrollState.value will mean bottom, when false
, 0 ScrollState.value will mean top
The configuration for the scrollbar's appearance and behavior.
Optional param to define the custom drawing for Scrollbar.
See also
Samples
com.shambu.compose.scrollbar.sample.VerticalScrollExampleModify element to allow to scroll vertically when height of the content is bigger than max constraints allow. Also displays draggable scrollbar
Parameters
state of the scroll
state of the scrollbar
whether or not scrolling via touch input is enabled
logic describing fling behavior when drag has finished with velocity. If null
, default from ScrollableDefaults.flingBehavior will be used.
reverse the direction of scrolling, when true
, 0 ScrollState.value will mean bottom, when false
, 0 ScrollState.value will mean top
If true, the scrollbar is always visible. Default is false (auto-hide).
Animation for auto-hiding the scrollbar. Default auto-hide animation if not specified.
If true, the scrollbar is draggable. Default is true.
To measure and draw the scrollbar.