I have a question about `FlowRow` , the property `...
# compose
f
I have a question about
FlowRow
, the property
verticalArrangement
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
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
@Albert Chang Ah got it, small but important difference. It makes more sense now, thank you !