https://kotlinlang.org logo
#compose
Title
# compose
i

itnoles

01/19/2020, 1:14 AM
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

Mihai Popa

01/20/2020, 11:27 AM
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

itnoles

01/20/2020, 3:41 PM
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

Mihai Popa

01/20/2020, 5:06 PM
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

itnoles

01/20/2020, 8:40 PM
Yes, it did. Thanks for your help.