I just copied the solution for VerticalScrollbar s...
# compose-desktop
s
I just copied the solution for VerticalScrollbar solution wie Kotlin/Native from one of the samples and noticed that it's almost identical implemented in a lot of examples. So I wondered why this isn't part of the normal runtime? Or is this already planned? I'm talking about this:
Copy code
@Composable
expect fun VerticalScrollbar(
    modifier: Modifier,
    scrollState: LazyListState
)
Copy code
@Composable
actual fun VerticalScrollbar(
    modifier: Modifier,
    scrollState: LazyListState
) = androidx.compose.foundation.VerticalScrollbar(
    rememberScrollbarAdapter(scrollState),
    modifier
)
Copy code
@Composable
actual fun VerticalScrollbar(
    modifier: Modifier,
    scrollState: LazyListState
) = Unit
1
i
So I wondered why this isn't part of the normal runtime
Because 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.
👍 1