Zach Klippenstein (he/him) [MOD]
08/11/2020, 6:57 PMCheckbox
requires an onCheckChanged
function, which is unfortunate if you want to make the label clickable as well, since now you’re passing the same handler twice, and the checkbox itself is still clickable but with its own ripple.Row(
modifier = Modifier.clickable(onClick = { isChecked = !isChecked }),
verticalGravity = Alignment.CenterVertically
) {
Checkbox(checked = isChecked, onCheckedChange = { isChecked = it })
Text("Check me, or don't.")
}
Colton Idle
08/12/2020, 10:45 PM