DialogNumberPicker
fun <T : Number> DialogNumberPicker(state: DialogState, value: MutableState<T>, setup: NumberPickerSetup<T>, iconDown: @Composable () -> Unit = {
Icon(imageVector = Icons.AutoMirrored.Filled.KeyboardArrowLeft, contentDescription = null)
}, iconUp: @Composable () -> Unit = {
Icon(imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight, contentDescription = null)
}, iconDown2: @Composable () -> Unit = {
Icon(imageVector = Icons.Default.KeyboardDoubleArrowLeft, contentDescription = null)
}, iconUp2: @Composable () -> Unit = {
Icon(imageVector = Icons.Default.KeyboardDoubleArrowRight, contentDescription = null)
}, formatter: (value: T) -> String = { it.toString() }, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, onValueStateChanged: (value: T) -> Unit = { }, title: @Composable () -> Unit? = null, icon: @Composable () -> Unit? = null, style: ComposeDialogStyle = DialogDefaults.defaultDialogStyle(), buttons: DialogButtons = DialogDefaults.buttons(), options: DialogOptions = DialogDefaults.options(), onEvent: (event: DialogEvent) -> Unit = {})
Shows a dialog with a number picker
Basic Parameters: all params not described here are derived from Dialog, check it out for more details
Parameters
value
the number state for this dialog
setup
iconDown
the icon for the decrease button
iconUp
the icon for the increase button
formatter
the formatter for the text of this picker
textStyle
the TextStyle for the text of this picker
onValueStateChanged
a callback that will be called whenever the value of the number picker changes