Радио кнопки теперь прокликиваются по всей ширине

This commit is contained in:
mezhendosina 2023-06-08 18:54:41 +05:00
parent 45c9101f9d
commit 9cd0bcddc8

View file

@ -262,14 +262,12 @@ fun FilterCheckbox(checked: Boolean, stringRes: Int, onCheckedChange: () -> Unit
fun FilterRadioButton(selected: Boolean, onClick: () -> Unit, stringRes: Int) {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxWidth().clickable { onClick.invoke() }
) {
RadioButton(
selected = selected,
onClick = onClick,
)
Text(
text = stringResource(id = stringRes),
modifier = Modifier.clickable { onClick() },
)
Text(text = stringResource(id = stringRes))
}
}