I have two Column on FlexRow. One of the Column ha...
# compose
i
I have two Column on FlexRow. One of the Column has
Copy code
Arrangement.End
it doesn't expand into the right side of the view. Am I missing something?
m
Can you show me your code?
Note the arrangement should be on the FlexRow, not on the Column, for the Column to be on the right if I understand correctly
(it is actually called mainAxisAlignment on FlexRow - note FlexRow will be removed in the next releases so you may want to use Row if possible)
i
Column { events.forEach { FlexRow(modifier = ExpandedWidth) { expanded(1f) { Column { Text(it.awayTeam) Text(it.homeTeam) Text(it.date.toString()) } Column( arrangement = Arrangement.End ) { Text(it.awayScore) Text(it.homeScore) } } } Divider() } }
I wanted First Three Text on Left, Another Two Text on Right
m
Column { events.forEach { Row(arrangement = Arrangement.SpaceBetween, modifier = ExpandedWidth) { Column { Text(it.awayTeam) Text(it.homeTeam) Text(it.date.toString()) } Column( arrangement = Arrangement.End ) { Text(it.awayScore) Text(it.homeScore) } } Divider() } }
Does this work?
i
Yes, it did. Thanks for your help.