Flutter maintains 3 trees - Widgets, Elements, and Render Objects. The user only sees Widgets though unless they are going lower-level. Iām curious if compose maintains several trees as well. Does it?
l
Leland Richardson [G]
11/15/2019, 7:28 PM
At the moment, no. Compose UI forms a single tree of ComponentNodes. That said, we have explored this type of architecture a bit but decided not to go down this route, though may revisit at a later date.
a
Adam Powell
11/15/2019, 9:36 PM
if you're looking for a (very) rough equivalence mapping, the call graph in compose serves the purpose of flutter's widget tree, the slot table serves the purpose of the element tree, and the ComponentNode tree serves the purpose of the renderobject tree.
š 1
ā¤ļø 1
š 2
Adam Powell
11/15/2019, 9:38 PM
so different constructs accomplishing similar tasks