josefdolezal
09/10/2021, 10:09 PMisLoading
variable alongside animating progress indicator’s visibilityColton Idle
09/10/2021, 10:15 PMjosefdolezal
09/10/2021, 10:45 PManimateContentSize
in my case, I put together a gist here: https://gist.github.com/josefdolezal/5583dec554e4341cbf39ddc133010545.weight
but then I think I am not able to animate content sizeDoris Liu
09/11/2021, 12:56 AMBox(Modifier.weight(1f)) {
Loader()
Column {
Spacer(Modifier.weight(1f))
Crossfade(..) { .. }
val bottomWeight by animateFloatAsState(if(isLoading) 0f else 1f)
if (bottomWeight > 0f) {
Spacer(Modifier.weight(bottomWeight))
}
}
}
josefdolezal
09/11/2021, 9:36 AM