mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-24 16:46:35 +00:00
move radiobuttons to left side in listpickerdialog
This commit is contained in:
parent
5300c4d930
commit
40433bd8d2
1 changed files with 6 additions and 6 deletions
|
@ -70,14 +70,9 @@ fun <T: Any> ListPickerDialog(
|
|||
}
|
||||
selected = item
|
||||
}
|
||||
.padding(horizontal = 24.dp)
|
||||
.padding(horizontal = if (showRadioButtons) 8.dp else 16.dp)
|
||||
.heightIn(min = 40.dp)
|
||||
) {
|
||||
Text(
|
||||
text = getItemName(item),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
if (showRadioButtons)
|
||||
RadioButton(
|
||||
selected = selected == item,
|
||||
|
@ -89,6 +84,11 @@ fun <T: Any> ListPickerDialog(
|
|||
selected = item
|
||||
}
|
||||
)
|
||||
Text(
|
||||
text = getItemName(item),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue