feat(ui): мягкие переходы между экранами (fade + лёгкий slide)
This commit is contained in:
@@ -90,7 +90,16 @@ class MainActivity : ComponentActivity() {
|
|||||||
NavHost(
|
NavHost(
|
||||||
navController = navController,
|
navController = navController,
|
||||||
startDestination = startDestination,
|
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) {
|
composable(NavDestinations.Stations.route) {
|
||||||
StationsScreen(
|
StationsScreen(
|
||||||
|
|||||||
Reference in New Issue
Block a user