Join Slack
Powered by
Whats the easiest workaround to using ScrollBar on...
# compose-desktop
l
Lucas
07/12/2022, 7:23 PM
Whats the easiest workaround to using ScrollBar on a multiplatform project?
Lucas
07/12/2022, 7:24 PM
I can only think of using expected/actual for the scrollbar,adapter,style, but i wonder if there is something easier.
m
Mitchell Syer
07/12/2022, 7:32 PM
I use an expect/actual solution for my project and it works quite nicely. Feel free to use it commonMain:
https://github.com/Suwayomi/Tachidesk-JUI/blob/master/ui-core/src/commonMain/kotlin/ca/gosyer/jui/uicore/components/Scrollbar.kt
androidMain:
https://github.com/Suwayomi/Tachidesk-JUI/blob/master/ui-core/src/androidMain/kotlin/ca/gosyer/jui/uicore/components/AndroidScrollbar.kt
desktopMain:
https://github.com/Suwayomi/Tachidesk-JUI/blob/master/ui-core/src/desktopMain/kotlin/ca/gosyer/jui/uicore/components/DesktopScrollbar.kt
l
Lucas
07/12/2022, 7:57 PM
Thanks. Works well
4
Views
Open in Slack
Previous
Next