We have a requirement to have a row with two boxes, and the width of each box is same as the widest box. Any idea how to achieve this optimally in Compose?
I have a working solution but it requires multiple passes and flickers in the process.
in the Boxes it should work.
Works without, but the background color must be set on the box. Did try it out quick and dirty and looks fine. Thanks @Mihai Popa, I'm sure I need that in the future, too. 😉
but didn’t think that would work. Would you mind explaining how this code works?
Weight is relative to siblings and the maximum width.
I don’t understand where IntrinsicSize.Max bases the size from.
Anyway, let me try this. 😄
Edit: Works! Thanks