Skip to content

Commit

Permalink
Feat : Feature 모듈 NavGraph 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
DongChyeon committed Mar 31, 2024
1 parent df37850 commit 0f35c3e
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package store.newsbriefing.app.feature.bookmark

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val bookmarkRoute = "bookmark_route"

fun NavController.navigateToBookmark() {
navigate(bookmarkRoute)
}

fun NavGraphBuilder.bookmarkScreen() {
composable(
route = bookmarkRoute
) {
BookmarkRoute()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package store.newsbriefing.app.feature.bookmark

import androidx.compose.runtime.Composable

@Composable
internal fun BookmarkRoute() {
BookmarkScreen()
}

@Composable
internal fun BookmarkScreen() {

}
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
package store.newsbriefing.app.feature.home

import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val homeRoute = "home_route"

fun NavController.navigateToHome() {
navigate(homeRoute)
}

@Composable
fun HomeNavGraph() {

fun NavGraphBuilder.homeScreen() {
composable(
route = homeRoute
) {
HomeRoute()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ package store.newsbriefing.app.feature.home

import androidx.compose.runtime.Composable

const val home = "home"
@Composable
fun HomeScreen() {
internal fun HomeRoute() {
HomeScreen()
}

@Composable
internal fun HomeScreen() {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package store.newsbriefing.app.feature.newsdetail

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val NewsDetailRoute = "news_detail_route"

fun NavController.navigateToNewsDetail() {
navigate(NewsDetailRoute)
}

fun NavGraphBuilder.newsDetailScreen() {
composable(
route = NewsDetailRoute
) {
NewsDetailRoute()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package store.newsbriefing.app.feature.newsdetail

import androidx.compose.runtime.Composable

@Composable
internal fun NewsDetailRoute() {
NewsDetailScreen()
}

@Composable
internal fun NewsDetailScreen() {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package store.newsbriefing.app.feature.setting

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val settingRoute = "setting_route"

fun NavController.navigateToSetting() {
navigate(settingRoute)
}

fun NavGraphBuilder.settingScreen() {
composable(
route = settingRoute
) {
SettingRoute()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package store.newsbriefing.app.feature.setting

import androidx.compose.runtime.Composable

@Composable
internal fun SettingRoute() {
SettingScreen()
}

@Composable
internal fun SettingScreen() {

}

0 comments on commit 0f35c3e

Please sign in to comment.