Zoltan Demant
11/25/2021, 4:56 AMChris Sinco [G]
11/25/2021, 4:56 AMZoltan Demant
11/25/2021, 4:57 AMval transition = updateTransition(
targetState = content,
label = null
)
transition.Crossfade(
contentKey = { content ->
content != null
},
animationSpec = spring(
stiffness = Spring.StiffnessMediumLow,
visibilityThreshold = 0.01f
),
content = { content ->
when {
content != null -> {
Render(content)
}
else -> {
Loading()
}
}
}
)
Zoltan Demant
11/25/2021, 6:31 AM