Switch¶
@Composable
fun SwitchDemo() {
val checkedState = remember { mutableStateOf(true) }
Switch(
checked = checkedState.value,
onCheckedChange = { checkedState.value = it }
)
}
See also:¶
Last update: July 27, 2022