feat(ui): мягкие переходы между экранами (fade + лёгкий slide)

This commit is contained in:
nk
2026-06-02 21:32:28 +03:00
parent f604ad42e8
commit 220d1d6fa1

View File

@@ -90,7 +90,16 @@ class MainActivity : ComponentActivity() {
NavHost(
navController = navController,
startDestination = startDestination,
modifier = Modifier.padding(paddingValues)
modifier = Modifier.padding(paddingValues),
enterTransition = {
androidx.compose.animation.fadeIn(androidx.compose.animation.core.tween(220)) +
androidx.compose.animation.slideInVertically(
androidx.compose.animation.core.tween(220)
) { it / 24 }
},
exitTransition = { androidx.compose.animation.fadeOut(androidx.compose.animation.core.tween(160)) },
popEnterTransition = { androidx.compose.animation.fadeIn(androidx.compose.animation.core.tween(220)) },
popExitTransition = { androidx.compose.animation.fadeOut(androidx.compose.animation.core.tween(160)) }
) {
composable(NavDestinations.Stations.route) {
StationsScreen(