Jamie Craane10/09/2020, 2:54 PM
Adam Powell10/09/2020, 2:58 PM
Jamie Craane10/09/2020, 3:02 PM
Zach Klippenstein (he/him) [MOD]10/09/2020, 4:33 PM
When code in a custom layout is re-ordered (for whatever reason) this potentially breaks the layout.This seems like a good thing to me, generally. It's intuitive that composables' z order is related to their order in code, since most view systems work this way. If you have a custom layout that depends on the ordering of composables and the directly children of that layout aren't an implementation detail of the layout itself, that would be brittle regardless of how z-order is determined, and probably using custom modifiers that set parent data is both a more readable and more robust way to identify children to the layout.
Adam Powell10/09/2020, 6:52 PM
does, or one where it's expressed as parent data and is only available from layouts that choose to support it