Skip to content

Commit

Permalink
Refactor NavHost
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Aug 14, 2024
1 parent 0bb5f0a commit 397885b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ fun MainNavHost(
currentDestination: MainNavigation,
) {
NavHost(
navController, MainNavigation.startDestination, modifier = Modifier.safeDrawingPadding(),
navController = navController,
startDestination = MainNavigation.startDestination,
modifier = Modifier.safeDrawingPadding(),
enterTransition = { if (currentDestination.enableTransition) fadeIn() else EnterTransition.None },
exitTransition = { if (currentDestination.enableTransition) fadeOut() else ExitTransition.None },
) {
Expand Down

0 comments on commit 397885b

Please sign in to comment.