jaran
05/28/2021, 1:06 PMmergeDescendants = true
does not work in the snippet below? VO reads both the RadioButton and Text.jaran
05/28/2021, 1:06 PMRow(
modifier = Modifier
.fillMaxWidth()
.height(48.dp).semantics(mergeDescendants = true) {},
verticalAlignment = Alignment.CenterVertically
) {
val radioButtonClickHandler = { currentOptionSelection.value = option }
RadioButton(
modifier = Modifier
.padding(start = 24.dp)
.size(20.dp)
.semantics { contentDescription = option.displayName },
selected = currentOptionSelection.value == option,
colors = RadioButtonDefaults.colors(
unselectedColor = gj_green_500,
selectedColor = gj_green_500
),
onClick = radioButtonClickHandler
)
Spacer(modifier = Modifier.width(24.dp))
Text(
modifier = Modifier
.wrapContentSize()
.clickable(onClick = radioButtonClickHandler),
text = option.displayName
)
}