Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Row(
modifier = Modifier.fillMaxWidth().toggleable(
value = checkedState.value,
onValueChange = { checkedState.value = it },
role = Role.Checkbox
)
.padding(8.dp),
horizontalArrangement = Arrangement.Center,
verticalAlignment = Alignment.CenterVertically
) {
Checkbox(modifier = Modifier
.semantics { contentDescription = "利用規約同意" }
.size(32.dp),
checked = checkedState.value,
onCheckedChange = null)
Text(text = "同意する", fontSize = 16.sp)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment