你仍然可以在那里找到它,但是"weight modifier"是一个在RowScope和ColumnScope内部的扩展函数,这意味着你只能在Column或者Row内使用它。参考资料:https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/RowScope#weight (RowScope)参考资料:https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/ColumnScope#weight (ColumnScope)
weight
,请参考 https://dev59.com/KcTra4cB1Zd3GeqPvQqd - aldok