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

Anita

11/02/2020, 6:51 AM
Do I need to import something in order to use Modifier.weight()? I'm using alpha06
h

Hitanshu Dhawan

11/02/2020, 10:13 AM
No, you don’t have to import anything. Make sure you are using it at right place like in Row or Column
2
h

Hitanshu Dhawan

11/02/2020, 8:25 PM
Here, the Button is inside the
Row
composable (Line no. 122) So,
Modifier.weight()
is used here from
RowScope