Skip to content

Instantly share code, notes, and snippets.

@gabrielbmoro
Created March 10, 2023 18:43
Show Gist options
  • Save gabrielbmoro/5f42e6b6afdcbf251d6e844cfe9adbe3 to your computer and use it in GitHub Desktop.
Save gabrielbmoro/5f42e6b6afdcbf251d6e844cfe9adbe3 to your computer and use it in GitHub Desktop.
AccessibilityArticle4
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,
)
// parte nova pra informar estado
.semantics {
if (stateDescription != null) {
this.stateDescription = stateDescription
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment