Jamie Craane
10/09/2020, 2:54 PMAdam Powell
10/09/2020, 2:58 PMJamie Craane
10/09/2020, 3:02 PMZach Klippenstein (he/him) [MOD]
10/09/2020, 4:33 PMWhen 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 Powell
10/09/2020, 6:52 PMModifier.offset
does, or one where it's expressed as parent data and is only available from layouts that choose to support it