Package-level declarations
Types
Link copied to clipboard
class NumberPickerSetup<T : Number>(val min: T, val max: T, val stepSize: T, val stepSize2: T = stepSize, val repeatingButton: RepeatingButton = RepeatingButton.Disabled)
setup class for a number picker dialog
Link copied to clipboard
repeating button settings class
Functions
Link copied to clipboard
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
Link copied to clipboard
convenient function for DialogNumberPicker
Link copied to clipboard
fun DialogDefaults.styleWindowsNumberDialog(dialogTitle: String, position: WindowPosition = WindowPosition(Alignment.Center), width: Dp = 400.dp, height: Dp = 200.dp, iconColor: Color = DialogStyleDefaults.iconColor, titleColor: Color = DialogStyleDefaults.titleColor, contentColor: Color = DialogStyleDefaults.contentColor): ComposeDialogStyle