Closed pocmo closed 3 years ago
@pocmo I have searched for the documentation of Compose Switch, I could not find anything. I am sure it exists because I have used it before:
val checkedState = remember { mutableStateOf(singlePlayer) }
Switch(checked = checkedState.value, onCheckedChange = {
checkedState.value = it
onCheckedChange(it)
})
XML: https://developer.android.com/reference/android/widget/Switch
Composable: ?