Stefan Oltmann
07/12/2021, 10:17 AM@Composable
expect fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
)
@Composable
actual fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
) = androidx.compose.foundation.VerticalScrollbar(
rememberScrollbarAdapter(scrollState),
modifier
)
@Composable
actual fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
) = Unit
Igor Demin
07/12/2021, 10:43 AMSo I wondered why this isn't part of the normal runtimeBecause they are not implemented for other platforms (Android). We don't know full requirements yet - how scrollbars should work in androidMain, so we don't know what a commonMain API should be. But we plan to look in that direction.