I can't find EqualWeight as shown off by Doris on ...
# compose
c
I can't find EqualWeight as shown off by Doris on twitter. Has the api changed? I tried looking for EqualWeight on cs.android.com with only 1 hit (and its a python file?)
g
You apply the weights to each item:
Copy code
Column {
  Item1(Modifier.weight(1f))
  Item2(Modifier.weight(1f))
  Item3(Modifier.weight(1f))
}
Note that
weight
is only valid within the
ColumnScope
c
Oh. I thought it was a single modifier or something. Thanks for clarifying!
👍🏼 1
👍 1