horizontalScrollWithScrollbar
Modify element to allow to scroll horizontally when width 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 right, when false
, 0 ScrollState.value will mean left
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.HorizontalScrollWithScrollbarSampleModify element to allow to scroll horizontally when width 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 right, when false
, 0 ScrollState.value will mean left
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.