From bcae99765abc23829852edc44c78f33e3890d8a2 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Fri, 12 Jul 2024 23:30:03 +0300 Subject: [PATCH] fix: Do not play 'expand' animation when going back between nav stacks --- .../artemchep/keyguard/feature/navigation/NavigationNode.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/navigation/NavigationNode.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/navigation/NavigationNode.kt index 458312a0..0c0b1027 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/navigation/NavigationNode.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/feature/navigation/NavigationNode.kt @@ -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