How do I get the text to be inline with the switch? ```Row(horizontalArrangement = Arrangement.Cente...
j
How do I get the text to be inline with the switch?
Copy code
Row(horizontalArrangement = Arrangement.Center) {
    Switch(
        checked = checkedState.value[index],
        onCheckedChange = { ... }
    )
    Text(s.clothingLabel, style = MaterialTheme.typography.h6)
}
I am using compose 1.2.0-alpha07
k
Try
verticalAlignment = Alignment.CenterVertically
👍 1
e
What do you align the whole row vertically?
Copy code
Row (
 horizontalArrangement = Arrangement.Center,
 verticalAlignment = Alignment.CenterVertically
) {
n
verticalAlignment?
j
Thanks, I don't know why I was using horizontal alignment.