Stepper

fun Stepper(value: Float, onValueChange: (Float) -> Unit, steps: Int, modifier: Modifier = Modifier, decreaseIcon: @Composable () -> Unit = { Icon( StepperDefaults.Decrease.asPaintable(), stringResource(R.string.horologist_stepper_decrease_content_description), ) }, increaseIcon: @Composable () -> Unit = { Icon( StepperDefaults.Increase.asPaintable(), stringResource(R.string.horologist_stepper_increase_content_description), ) }, valueRange: ClosedFloatingPointRange<Float> = 0f..(steps + 1).toFloat(), backgroundColor: Color = MaterialTheme.colors.background, contentColor: Color = contentColorFor(backgroundColor), iconColor: Color = contentColor, enableRangeSemantics: Boolean = true, content: @Composable BoxScope.() -> Unit)
fun Stepper(value: Int, onValueChange: (Int) -> Unit, valueProgression: IntProgression, modifier: Modifier = Modifier, decreaseIcon: @Composable () -> Unit = { Icon( StepperDefaults.Decrease.asPaintable(), stringResource(R.string.horologist_stepper_decrease_content_description), ) }, increaseIcon: @Composable () -> Unit = { Icon( StepperDefaults.Increase.asPaintable(), stringResource(R.string.horologist_stepper_increase_content_description), ) }, backgroundColor: Color = MaterialTheme.colors.background, contentColor: Color = contentColorFor(backgroundColor), iconColor: Color = contentColor, enableRangeSemantics: Boolean = true, content: @Composable BoxScope.() -> Unit)

Wrapper for androidx.wear.compose.material.Stepper with default RSB scroll support.

See also