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

Miguel A. Ruiz

02/26/2020, 10:31 PM
Hello! I am trying to add to my project a row with a column with take the maximum space available and other only the minimum space needed. I show in the codelab the modifiers Flexible and Inflexible but these seem to be deprecated. What are the replacement for this?
l

Louis Pullen-Freilich [G]

02/26/2020, 10:58 PM
LayoutFlexible modifier
a

Alexandre Elias [G]

02/27/2020, 12:58 AM
right, and there's no replacement for Inflexible because anything in a `Column`/`Row` without
LayoutFlexible
modifier is now inflexible by default
m

Miguel A. Ruiz

02/27/2020, 6:28 AM
Thanks!
I am trying to use LayoutFlexible but I can not resolve it. Is this in dev05?
I know now what was wrong. I had somethink like this:
Copy code
Row {
  composableFun1()
  composableFun2()
}
but LayoutFlexible can't be in a nested function inside Row
l

Louis Pullen-Freilich [G]

02/28/2020, 2:24 PM
Ah yes, you need to explicitly pass it through to the function, we are investigating ways to make this easier
2 Views