https://kotlinlang.org logo
Title
c

Colton Idle

11/04/2021, 11:48 PM
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

George Mount

11/04/2021, 11:54 PM
You apply the weights to each item:
Column {
  Item1(Modifier.weight(1f))
  Item2(Modifier.weight(1f))
  Item3(Modifier.weight(1f))
}
Note that
weight
is only valid within the
ColumnScope
c

Colton Idle

11/04/2021, 11:58 PM
Oh. I thought it was a single modifier or something. Thanks for clarifying!
👍🏼 1
👍 1