fix: Improve animation

This commit is contained in:
Myzel394 2023-08-06 13:13:19 +02:00
parent 577e6e0aab
commit ba70c4b605
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -1,6 +1,7 @@
package app.myzel394.locationtest.ui
import androidx.compose.animation.Crossfade
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn
@ -51,7 +52,7 @@ fun Navigation() {
}
},
exitTransition = {
scaleOut(targetScale = SCALE_IN) + fadeOut()
scaleOut(targetScale = SCALE_IN) + fadeOut(tween(durationMillis = 150))
}
) {
AudioRecorder(navController = navController)
@ -62,7 +63,7 @@ fun Navigation() {
scaleIn(initialScale = 1 / SCALE_IN) + fadeIn()
},
exitTransition = {
scaleOut(targetScale = 1 / SCALE_IN) + fadeOut()
scaleOut(targetScale = 1 / SCALE_IN) + fadeOut(tween(durationMillis = 150))
}
) {
SettingsScreen(navController = navController)