Number Picker
fun NumberPicker(number: Int, modifier: Modifier = Modifier, range: IntRange? = null, textStyle: TextStyle = LocalTextStyle.current, arrowsColor: Color = MaterialTheme.colorScheme.primary, allowUseManualInput: Boolean = true, onStateChanged: (Int) -> Unit = {})(source)
A Compose number picker component that allows users to select a number by dragging, using arrow buttons, or manually entering a value.
Parameters
number
The currently selected number
modifier
The modifier to be applied to the picker
range
Optional range of valid numbers. If specified, the picker will be limited to this range
text Style
The text style for displaying numbers
arrows Color
The color of the up/down arrow buttons
allow Use Manual Input
Whether to allow manual keyboard input for the number
on State Changed
Callback invoked when the selected number changes