From 397885b978bf02158a3a14599f1848e76374981e Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Wed, 14 Aug 2024 16:33:12 +0200 Subject: [PATCH] Refactor NavHost --- .../infomaniak/swisstransfer/ui/screen/main/MainNavHost.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/MainNavHost.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/MainNavHost.kt index 897ceeadb..1313e6d2f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/MainNavHost.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/MainNavHost.kt @@ -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 }, ) {