What's the recommended way to align elements in ot...
# compose
m
What's the recommended way to align elements in other elements? Say I have the following where I want all of the first columns in each row to have the same width:
Copy code
+---------+--------+
| 20 ms   | ABCDEF |
+---------+--------+

+---------+-------------+
| 1200 ms | GHIJKLMNOPQ |
|         | RSTUV       |
+---------+-------------+
In traditional CSS I'd use a heavily styled grid for this, but this isn't really a thing in Compose. I could add an onGloballyPositioned modifier to each element in each Row{} to determine their width and get the maximum and then apply that to all, but I feel like there should be an easier way to do something this common, but I haven't found a clean way to do it.
s
For anyone stumbling upon this, read more here: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1732808173041649