在Compose中的ConstraintLayout中,
width = Dimension.fillToConstraints。在一個方向的兩邊屬性都有約束時,這個屬性可以填充約束布局。類似width=0dp,weight= 1
width = Dimension.preferredWrapContent。除非ConstraintSet中的約束條件不允許,否則將尊重wrap content的大小。
在Compose中的ConstraintLayout中,
width = Dimension.fillToConstraints。在一個方向的兩邊屬性都有約束時,這個屬性可以填充約束布局。類似width=0dp,weight= 1
width = Dimension.preferredWrapContent。除非ConstraintSet中的約束條件不允許,否則將尊重wrap content的大小。