dimsuz
04/04/2022, 4:06 PMMyLayout(slot = { visible -> AnimatedVisibility(visible) { ... } })
and the logic is such that I want that visible to be calculated based on available height and slot size: I measure my "slot" then if it fits, I pass visibility = true, otherwise false.
I wanted to use SubcomposeLayout for this but turns out that to calculate visible I need to subcompose/measure that slot and to subcompose/measure it I need to calculate visible 🐔 🥚
Is this possible? Inner State + recompose?Adam Powell
04/04/2022, 5:33 PMdimsuz
04/05/2022, 10:33 AMAdam Powell
04/05/2022, 2:15 PMLayout or Modifier.layout you can choose not to place an element and it will not appearAdam Powell
04/05/2022, 2:16 PM.placeWithLayer to set an alpha value for the placeableAdam Powell
04/05/2022, 2:27 PMdimsuz
04/05/2022, 2:36 PMplaceWithLayer will check it out. And I'll also run the thought experiment, thanks!Adam Powell
04/05/2022, 3:02 PMdimsuz
04/05/2022, 3:26 PM