Stefan Oltmann
04/11/2025, 7:15 AMAnimatedVisibility
with a lot of content.
In the UI I build you can expand a lot of controls there and the first time it lags visibly.
ChatGPT recommended to pre-warm the composable by rendering the content first in a Box with size 0 or alpha 0, but that didn't really help. It also came up with a non-working SubComposeLayout hack.
What's the proper way to pre-warm content in AnimatedVisibility
so it doesn't lag?Zach Klippenstein (he/him) [MOD]
04/11/2025, 12:37 PMStefan Oltmann
04/11/2025, 2:06 PMStefan Oltmann
04/11/2025, 2:07 PMFernando
04/12/2025, 4:50 PMStefan Oltmann
04/12/2025, 8:33 PMZoltan Demant
04/13/2025, 7:15 AMStefan Oltmann
04/13/2025, 8:07 AMSubcomposeLayout
is the solution to pre-warm?
ChatGPT suggested that, but all code it generated was broken. So I would need to find a good sample code how to use it.Zoltan Demant
04/13/2025, 12:23 PMStefan Oltmann
04/13/2025, 12:25 PM