Hey I have a noob question, I have two Composables...
# compose
p
Hey I have a noob question, I have two Composables inside a Row, and I want to align one to the left and one to the right. What's the easiest way to do this?
c
You can add a Modifier to the first element to have a weight of 1.0f, or add a Spacer with the same Modifier, to fill the gap between the two Composables
Copy code
Spacer(modifier = Modifier.weight(1f))
f
Or use the
SpaceBetween
horizontal arrangement.
1
✔️ 1