Arjan van Wieringen
11/22/2022, 7:22 PMIntrinsicSize.Min
on the Column and used fillMaxWidth
on the contents. But that doesn't work here. Any tips?
The gist is here: https://gist.github.com/avwie/9b0ee5f2882e8d26517f4ab7fc2b0408Kevin Del Castillo
11/22/2022, 7:48 PMModifier.width(IntrinsicSize.Max)
not IntrinsicSize.Min
Arjan van Wieringen
11/22/2022, 7:54 PMKevin Del Castillo
11/22/2022, 7:56 PMColumn(modifier = Modifier.width(IntrinsicSize.Max)) {
Item(modifier = Modifier.fillMaxWidth())
Item(modifier = Modifier.fillMaxWidth())
Item(modifier = Modifier.fillMaxWidth())
}
Kevin Del Castillo
11/22/2022, 7:57 PMIntrinsicSize.Max
should be in your Column
, and your items should try to fill the max width, I believe this should workKevin Del Castillo
11/22/2022, 7:57 PMArjan van Wieringen
11/22/2022, 8:11 PMChris Sinco [G]
11/22/2022, 10:56 PMArjan van Wieringen
11/24/2022, 3:42 PMArjan van Wieringen
11/24/2022, 3:42 PMKevin Del Castillo
11/24/2022, 3:43 PMArjan van Wieringen
11/24/2022, 4:32 PMArjan van Wieringen
11/25/2022, 6:31 PM.onGloballyPositioned
and recorded the maximum widths and added a modifier based on that. Hacky hacky, but it works.Doris Liu
11/29/2022, 12:11 AM