Skip to content

Commit

Permalink
[TV] Refactor NavHost animations
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Feb 4, 2025
1 parent fd3672b commit 00c91ab
Showing 1 changed file with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,34 +126,22 @@ fun TvHostScreen(
NavHost(
navController = navController,
startDestination = TvHostScreen.Information.route,
enterTransition = { fadeIn() },
exitTransition = { fadeOut() },
popEnterTransition = { fadeIn() },
popExitTransition = { fadeOut() },
) {
composable(
route = TvHostScreen.Information.route,
enterTransition = { fadeIn() },
exitTransition = { fadeOut() },
popEnterTransition = { fadeIn() },
popExitTransition = { fadeOut() },
) { TvInfoContainerScreen() }
composable(
route = TvHostScreen.Applications.route,
enterTransition = { fadeIn() },
exitTransition = { fadeOut() },
popEnterTransition = { fadeIn() },
popExitTransition = { fadeOut() },
) { TvApplicationsScreen() }
composable(
route = TvHostScreen.Temperatures.route,
enterTransition = { fadeIn() },
exitTransition = { fadeOut() },
popEnterTransition = { fadeIn() },
popExitTransition = { fadeOut() },
) { TvTemperatureScreen() }
composable(
route = TvHostScreen.Settings.route,
enterTransition = { fadeIn() },
exitTransition = { fadeOut() },
popEnterTransition = { fadeIn() },
popExitTransition = { fadeOut() },
) { TvSettingsScreen() }
}
}
Expand Down

0 comments on commit 00c91ab

Please sign in to comment.