Aurora Vertical Scrollbar
@Composable
Content copied to clipboard
Vertical scrollbar that can be attached to some scrollable component (ScrollableColumn, LazyColumn) and share common state with it.
Can be placed independently.
Example: val state = rememberScrollState(0f)
Box(Modifier.fillMaxSize()) {
Box(modifier = Modifier.verticalScroll(state)) {
...
}
AuroraVerticalScrollbar(
Modifier.align(Alignment.CenterEnd).fillMaxHeight(),
rememberScrollbarAdapter(state)
)
}Content copied to clipboard
Parameters
adapter
ScrollbarAdapter that will be used to communicate with scrollable component
modifier
the modifier to apply to this layout