Zach Klippenstein (he/him) [MOD]
03/19/2020, 3:20 PMOnChildPositionedModifier
seems surprising to me. Given that a node can have any number of children, I'm glad the kdoc calls out that the callback will be invoked once for every child. But it would seem a lot more intuitive (and more consistent with the Layout
composable) to invoke the callback once per layout pass, and instead pass in the list of LayoutCoordinates
corresponding to all the children laid out in that pass. The current API makes it difficult to determine if two given callback invocations correspond to two siblings in the same pass or the same child in subsequent passes. What's the reasoning behind this API design?Leland Richardson [G]
03/19/2020, 4:03 PMLeland Richardson [G]
03/19/2020, 4:03 PMLeland Richardson [G]
03/19/2020, 4:04 PMMihai Popa
03/19/2020, 4:09 PMZach Klippenstein (he/him) [MOD]
03/19/2020, 4:13 PMAndrey Kulikov
03/19/2020, 5:39 PMZach Klippenstein (he/him) [MOD]
03/19/2020, 6:14 PM