I was able to achieve what I wanted but I had to c...
# compose-wear
j
I was able to achieve what I wanted but I had to copy Picker source code into my app. Is there a particular reason why
PickerState.scalingLazyListState
is marked internal? I assume this same limitation is why Horologist has an internal copy of Picker.
s
Hi - it's an implementation detail of Picker that it uses ScalingLazyColumn, so it's right that scalingLazyListState is internal. We are working on rotary support for Picker, which will provide similar functionality to the rotary modifiers already available in Horologist.
j
Do you know why Picker is private inside of Horologist?
y
It's an implementation detail to support date and time pickers. Bit confusing if we copy and paste another one.
j
Understood.
s
Thanks for highlighting the issue - it is something we're working on, the ideal situation is that the Picker supports rotary with snapping by default.
j
Could you also add in support for rotary snapping w/ Horizontal & Vertical Pager
y
I forgot. Horologist has a public API to convert so you can use it with the other modifiers.
public fun androidx.wear.compose.material.PickerState.toRotaryScrollAdapter(): RotaryScrollAdapter =
j
What version of the library includes this function? I am unable to call this function using “0.5.9”
y
Compostables library