Nat Strangerweather
07/19/2021, 7:36 PMNat Strangerweather
07/19/2021, 7:37 PMNat Strangerweather
07/19/2021, 7:37 PMCrossfade(
targetState = scene, animationSpec = tween(
durationMillis = 4000, easing = LinearOutSlowInEasing
)
) { scene ->
when (scene) {
Scene.TextButton -> {
AnimatedVisibility(
visible = visible,
enter = expandHorizontally(
expandFrom = Alignment.CenterHorizontally,
animationSpec = tween(2000)
),
exit = shrinkHorizontally(
shrinkTowards = Alignment.CenterHorizontally,
animationSpec = tween(2000)
),
) {
TextButton()
}
}
Scene.IconButton ->
IconButton(size)
}
Nat Strangerweather
07/19/2021, 7:40 PMval size by animateDpAsState(
targetValue = if (small) 0.dp else 100.dp,
animationSpec = tween(durationMillis = 2000)
)
Unless someone might be able to tell me? 😊Nat Strangerweather
07/19/2021, 8:23 PMdbaelz
07/20/2021, 10:18 AMverticalAlignment = Alignment.CenterVertically
. That should do the trick.Nat Strangerweather
07/20/2021, 2:01 PM