jaran
mergeDescendants = true
Row( 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 ) }
A modern programming language that makes developers happier.