From 6646fb6a45d2aa35d03ba7bba76d3bafff3bd26f Mon Sep 17 00:00:00 2001 From: arinming Date: Mon, 9 Sep 2024 17:45:19 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT/#220]=20paddingValues=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../terning/feature/intern/navigation/InternNavigation.kt | 5 +++++ feature/src/main/java/com/terning/feature/main/MainScreen.kt | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/feature/src/main/java/com/terning/feature/intern/navigation/InternNavigation.kt b/feature/src/main/java/com/terning/feature/intern/navigation/InternNavigation.kt index 7bc5c14c3..7af39f4c0 100644 --- a/feature/src/main/java/com/terning/feature/intern/navigation/InternNavigation.kt +++ b/feature/src/main/java/com/terning/feature/intern/navigation/InternNavigation.kt @@ -2,6 +2,9 @@ package com.terning.feature.intern.navigation import androidx.compose.animation.EnterTransition import androidx.compose.animation.ExitTransition +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.layout.padding +import androidx.compose.ui.Modifier import androidx.navigation.NavController import androidx.navigation.NavGraphBuilder import androidx.navigation.NavHostController @@ -24,6 +27,7 @@ fun NavController.navigateIntern( fun NavGraphBuilder.internNavGraph( navHostController: NavHostController, + paddingValues: PaddingValues, ) { composable( exitTransition = { @@ -42,6 +46,7 @@ fun NavGraphBuilder.internNavGraph( val args = it.toRoute() InternRoute( announcementId = args.announcementId, + modifier = Modifier.padding(paddingValues), navController = navHostController ) } diff --git a/feature/src/main/java/com/terning/feature/main/MainScreen.kt b/feature/src/main/java/com/terning/feature/main/MainScreen.kt index 516f63bf1..47ee3919c 100644 --- a/feature/src/main/java/com/terning/feature/main/MainScreen.kt +++ b/feature/src/main/java/com/terning/feature/main/MainScreen.kt @@ -160,7 +160,10 @@ fun MainScreen( ) searchProcessNavGraph(navHostController = navigator.navController) changeFilterNavGraph(navHostController = navigator.navController) - internNavGraph(navHostController = navigator.navController) + internNavGraph( + paddingValues = paddingValues, + navHostController = navigator.navController + ) myPageNavGraph( paddingValues = paddingValues, navHostController = navigator.navController