mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Do not show animation from WelcomeScreen to AudioRecorderScreen
This commit is contained in:
parent
c8fb20452f
commit
577e6e0aab
@ -1,5 +1,6 @@
|
||||
package app.myzel394.locationtest.ui
|
||||
|
||||
import androidx.compose.animation.Crossfade
|
||||
import androidx.compose.animation.fadeIn
|
||||
import androidx.compose.animation.fadeOut
|
||||
import androidx.compose.animation.scaleIn
|
||||
@ -44,7 +45,10 @@ fun Navigation() {
|
||||
composable(
|
||||
Screen.AudioRecorder.route,
|
||||
enterTransition = {
|
||||
scaleIn(initialScale = SCALE_IN) + fadeIn()
|
||||
when (initialState.destination.route) {
|
||||
Screen.Welcome.route -> null
|
||||
else -> scaleIn(initialScale = SCALE_IN) + fadeIn()
|
||||
}
|
||||
},
|
||||
exitTransition = {
|
||||
scaleOut(targetScale = SCALE_IN) + fadeOut()
|
||||
|
Loading…
x
Reference in New Issue
Block a user