Skip to content

Commit

Permalink
[FEAT/#220] paddingValues ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Sep 9, 2024
1 parent 29ef0a5 commit 6646fb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,6 +27,7 @@ fun NavController.navigateIntern(

fun NavGraphBuilder.internNavGraph(
navHostController: NavHostController,
paddingValues: PaddingValues,
) {
composable<Intern>(
exitTransition = {
Expand All @@ -42,6 +46,7 @@ fun NavGraphBuilder.internNavGraph(
val args = it.toRoute<Intern>()
InternRoute(
announcementId = args.announcementId,
modifier = Modifier.padding(paddingValues),
navController = navHostController
)
}
Expand Down
5 changes: 4 additions & 1 deletion feature/src/main/java/com/terning/feature/main/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6646fb6

Please sign in to comment.