states
> The vertical arrangement of the layout’s virtual rows.
but children are still rendered at the top and in order to align a children vertical-centered, I need to add
align
to each children.
The API sounds a bit confusing, can someone explain how
verticalArrangement
is meant to be used?
Thank you 🙏
a
Albert Chang
03/19/2024, 4:06 AM
It controls how rows are aligned, not how individual children are aligned in a row. For example, if you want to add some spacing between the rows, you can use
Arrangement.spacedBy(4.dp)
.
f
Fin
03/19/2024, 9:13 AM
@Albert Chang Ah got it, small but important difference. It makes more sense now, thank you !