There is a less full featured one (no fling support) that I've used in a few places.
Copy code
public fun Modifier.scrollableColumn(
focusRequester: FocusRequester,
scrollableState: ScrollableState
): Modifier = composed {
val coroutineScope = rememberCoroutineScope()
onPreRotaryScrollEvent {
coroutineScope.launch {
scrollableState.scrollBy(it.verticalScrollPixels)
}
true
}
.focusRequester(focusRequester)
.focusable()
}
j
John Nichol
04/19/2022, 11:19 AM
@yschimke Do you have anything for Bezel?
y
yschimke
04/19/2022, 11:59 AM
That one should work for bezel
a
andrew
04/20/2022, 2:04 PM
Gotcha, just curious as to the reason. My project is definitely not production ready quite yet, and wear isn’t first priority either. Good to know it’s in the works!