fix: Do not play 'expand' animation when going back between nav stacks

This commit is contained in:
Artem Chepurnoy 2024-07-12 23:30:03 +03:00
parent 2af2af0900
commit bcae99765a
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
@ -129,6 +130,8 @@ fun NavigationNode(
val updatedAnimationScale by rememberUpdatedState(LocalAnimationFactor)
AnimatedContent(
modifier = Modifier
.fillMaxSize(),
targetState = foo,
transitionSpec = {
val animationType = getNavAnimation().value