Skip to content

Commit fe0f968

Browse files
committed
Refactor: HomeNavRoute에 innerPadding 적용
- 루틴 추천 화면 기본 간격여백 추가
1 parent c4a1e0e commit fe0f968

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/src/main/java/com/threegap/bitnagil/navigation/home/HomeNavHost.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import android.app.Activity
55
import androidx.activity.compose.BackHandler
66
import androidx.compose.foundation.background
77
import androidx.compose.foundation.layout.Box
8+
import androidx.compose.foundation.layout.WindowInsets
89
import androidx.compose.foundation.layout.fillMaxSize
910
import androidx.compose.foundation.layout.padding
1011
import androidx.compose.material3.Scaffold
@@ -53,11 +54,12 @@ fun HomeNavHost(
5354
bottomBar = {
5455
HomeBottomNavigationBar(navController = navigator.navController)
5556
},
56-
content = { _ ->
57+
contentWindowInsets = WindowInsets(0.dp, 0.dp, 0.dp, 0.dp),
58+
content = { innerPadding ->
5759
NavHost(
5860
navController = navigator.navController,
5961
startDestination = navigator.startDestination,
60-
modifier = modifier,
62+
modifier = modifier.padding(innerPadding),
6163
) {
6264
composable(HomeRoute.Home.route) {
6365
HomeScreenContainer(

presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineScreen.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ private fun RecommendRoutineScreen(
173173
onAddRoutineClick = { onRegisterRoutineClick(routine.id.toString()) },
174174
)
175175
}
176+
177+
item {
178+
Spacer(modifier = Modifier.height(110.dp))
179+
}
176180
}
177181
}
178182
}

0 commit comments

Comments
 (0)