Package-level declarations

Types

Link copied to clipboard
class DefaultScrollbarLayoutScope(drawScope: DrawScope, scrollbarState: ScrollbarState, val density: Float, val fontScale: Float) : ScrollbarLayoutScope

Functions

Link copied to clipboard
Link copied to clipboard
fun Modifier.horizontalScrollWithScrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, enabled: Boolean = true, flingBehavior: FlingBehavior? = null, reverseScrolling: Boolean = false, scrollbarConfig: ScrollbarConfig = ScrollbarConfig(), onDrawScrollbar: DrawScope.(measurements: ScrollbarMeasurements) -> Unit = { measurements -> drawDefaultScrollbar(measurements, scrollbarConfig) }): Modifier
fun Modifier.horizontalScrollWithScrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, enabled: Boolean = true, flingBehavior: FlingBehavior? = null, reverseScrolling: Boolean = false, alwaysShowScrollbar: Boolean = false, autoHideScrollbarAnimationSpec: AnimationSpec<Float>? = null, enableScrollbarDrag: Boolean = true, onMeasureAndDrawScrollbar: ScrollbarMeasureAndDraw): Modifier

Modify element to allow to scroll horizontally when width of the content is bigger than max constraints allow. Also displays draggable scrollbar

Link copied to clipboard
fun Modifier.scrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, direction: Orientation, config: ScrollbarConfig = ScrollbarConfig(), onDraw: DrawScope.(measurements: ScrollbarMeasurements) -> Unit = { measurements -> drawDefaultScrollbar(measurements, config) }): Modifier

This modifier allows you to add a scrollbar to a scrollable composable. The scrollbar's appearance and behavior can be customized using the config parameter.

fun Modifier.scrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, direction: Orientation, showAlways: Boolean = false, autoHideAnimationSpec: AnimationSpec<Float>? = null, isDragEnabled: Boolean = true, onMeasureAndDraw: ScrollbarMeasureAndDraw): Modifier

This modifier allows you to add a scrollbar to a scrollable composable.

Link copied to clipboard
fun Modifier.verticalScrollWithScrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, enabled: Boolean = true, flingBehavior: FlingBehavior? = null, reverseScrolling: Boolean = false, scrollbarConfig: ScrollbarConfig = ScrollbarConfig(), onDrawScrollbar: DrawScope.(measurements: ScrollbarMeasurements) -> Unit = { measurements -> drawDefaultScrollbar(measurements, scrollbarConfig) }): Modifier
fun Modifier.verticalScrollWithScrollbar(scrollState: ScrollState, scrollbarState: ScrollbarState, enabled: Boolean = true, flingBehavior: FlingBehavior? = null, reverseScrolling: Boolean = false, alwaysShowScrollbar: Boolean = false, autoHideScrollbarAnimationSpec: AnimationSpec<Float>? = null, enableScrollbarDrag: Boolean = true, onMeasureAndDrawScrollbar: ScrollbarMeasureAndDraw): Modifier

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