mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +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
|
package app.myzel394.locationtest.ui
|
||||||
|
|
||||||
|
import androidx.compose.animation.Crossfade
|
||||||
import androidx.compose.animation.fadeIn
|
import androidx.compose.animation.fadeIn
|
||||||
import androidx.compose.animation.fadeOut
|
import androidx.compose.animation.fadeOut
|
||||||
import androidx.compose.animation.scaleIn
|
import androidx.compose.animation.scaleIn
|
||||||
@ -44,7 +45,10 @@ fun Navigation() {
|
|||||||
composable(
|
composable(
|
||||||
Screen.AudioRecorder.route,
|
Screen.AudioRecorder.route,
|
||||||
enterTransition = {
|
enterTransition = {
|
||||||
scaleIn(initialScale = SCALE_IN) + fadeIn()
|
when (initialState.destination.route) {
|
||||||
|
Screen.Welcome.route -> null
|
||||||
|
else -> scaleIn(initialScale = SCALE_IN) + fadeIn()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
exitTransition = {
|
exitTransition = {
|
||||||
scaleOut(targetScale = SCALE_IN) + fadeOut()
|
scaleOut(targetScale = SCALE_IN) + fadeOut()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user