StepContent
The StepContent
annotation is used to mark the methods which are the content of a step of the Stepper component. It indicates the number of step and whether the step is enabled in specific scenarios.
@Composable
@NonRestartableComposable
@StepContent(
number = 0,
enabledWhen = "This step is enabled when etc..."
)
private fun Check() {
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Checkbox(
checked = checked.value,
onCheckedChange = { checked.value = it }
)
Text(
text = "All code is okay"
)
}
}
Content copied to clipboard
Since
1.0.7
Author
N7ghtm4r3 - Tecknobit