Slider
Displays a focusable slider controlled by D-pad keys.
A single Left or Right press changes the value by keyStep. Holding a key changes it by keyRepeatStep for each repeat.
Parameters
the current slider value, constrained to valueRange
called with each value change
the Modifier to be applied to this slider
whether the slider responds to user input
the range of values available to the slider
the value change for a single Left or Right press
the value change for each key repeat while Left or Right is held
called on key-up, when focus is lost, or when the slider is disabled
the colors used for enabled and disabled states. See SliderDefaults.colors.
the MutableInteractionSource used to observe focus interactions
the thumb slot, which receives the current SliderState
the track slot, which receives the current SliderState
Displays a slider backed by state and controlled by D-pad keys.
A single Left or Right press changes the value by keyStep. Holding a key changes it by keyRepeatStep for each repeat.
Parameters
the SliderState that holds the slider value and range
called with each value change
the Modifier to be applied to this slider
whether the slider responds to user input
the value change for a single Left or Right press
the value change for each key repeat while Left or Right is held
called on key-up, when focus is lost, or when the slider is disabled
the colors used for enabled and disabled states. See SliderDefaults.colors.
the MutableInteractionSource used to observe focus interactions
the thumb slot, which receives the current SliderState
the track slot, which receives the current SliderState