Skip to content

Instantly share code, notes, and snippets.

@gabrielbmoro
Created March 10, 2023 18:42
Show Gist options
  • Save gabrielbmoro/5f319b87eecdf861c673d640d7b4838c to your computer and use it in GitHub Desktop.
Save gabrielbmoro/5f319b87eecdf861c673d640d7b4838c to your computer and use it in GitHub Desktop.
AccessibilityArticle3
val modifier = Modifier
.fillMaxWidth(2f)
.clip(CircleShape)
.background(answerState.backgroundColor)
.padding(8.dp)
.toggleable(
enabled = isAnswerSelectionEnabled,
role = Role.RadioButton,
onValueChange = {
attemptCallback(answer)
},
value = answerState.isSelected,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment