Zach Klippenstein (he/him) [MOD]
07/17/2020, 5:01 PMLeland Richardson [G]
07/17/2020, 5:21 PMmatvei
07/17/2020, 5:32 PMZach Klippenstein (he/him) [MOD]
07/17/2020, 5:45 PMAndrey Kulikov
07/17/2020, 5:49 PMModifier.fillMaxSize()
work in any other approach. but we can intentionally use a different name, something like Modifier.fillParentSize()
. everyone will anyway first try to use Modifier.fillMaxSize()
and then realize it doesn't work. We can also add deprecated Modifier.fillMaxSize()
in a scope just to shadow the real one and point people to the correct one 🙂 . my initial version had just val parentConstraints: DpConstraints
in the scope so you have to explicitly Modifier.size(width = parentConstraints.maxWidth, height = parentConstraints.maxHeight)
. and yes, we don't really want to use ambients for something defined not during composition, but during the measurementZach Klippenstein (he/him) [MOD]
07/17/2020, 5:51 PMfillParentSize()
would be defined only on LazyItemsScope
?Andrey Kulikov
07/17/2020, 5:52 PMLeland Richardson [G]
07/17/2020, 5:54 PMLeland Richardson [G]
07/17/2020, 5:55 PMZach Klippenstein (he/him) [MOD]
07/17/2020, 5:56 PMAdam Powell
07/17/2020, 5:56 PMAndrey Kulikov
07/17/2020, 5:58 PMLeland Richardson [G]
07/17/2020, 5:59 PMZach Klippenstein (he/him) [MOD]
07/17/2020, 6:00 PM