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

Luca Nicoletti

10/18/2019, 7:52 PM
Any idea why the
FlexColumn
compose the 2
Text
in a row instead of a column?
Using
Column
instead of
FlexColumn
works
l

Leland Richardson [G]

10/18/2019, 8:03 PM
sounds like it could be a bug, but IIRC FlexColumn is going away and there will just be Column
👍 2
l

Luca Nicoletti

10/18/2019, 8:03 PM
Same for
FlexRow
I guess then, going away 🙂
l

Leland Richardson [G]

10/18/2019, 8:12 PM
yep, i believe Row/Column will encompass these use cases
a

Adam Powell

10/19/2019, 12:06 AM
Looks like the original code from this thread shouldn't have compiled, the body of FlexColumn isn't composable and it was missing the expanded/etc. wrappers around the Texts, so it looks like it emitted into the parent row instead
l

Luca Nicoletti

10/19/2019, 7:04 PM
Oh so I was missing a `inflexible`/`expanded` inside the
FlexColumn
?
a

Adam Powell

10/19/2019, 7:04 PM
I think so, yeah
l

Luca Nicoletti

10/20/2019, 7:58 AM
Yep, wrapping the 2 `Text`s worked
Thanks
2 Views