Wheel Picker
fun WheelPicker(state: WheelPickerState, modifier: Modifier = Modifier, bufferSize: Int = 3, animationSpec: AnimationSpec<Float> = spring(Spring.DampingRatioLowBouncy, Spring.StiffnessMediumLow), friction: Float = 8.0f, window: @Composable () -> Unit = {}, item: @Composable (Int) -> Unit)
Displays a wheel picker.
Parameters
state
manages the wheel picker’s state.
modifier
the modifiers to apply.
buffer Size
the number of items shown above and below the window.
animation Spec
the animation specification for animated scroll and snapping.
friction
the scroll friction, used for snapping.
window
draws the window, which highlights the selected item.
item
draws the item at the given index. To style the item based on its position, compare the passed-in index to WheelPickerState.value.