-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD/#8] bottom navigation route add
- Loading branch information
Showing
18 changed files
with
158 additions
and
60 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
feature/src/main/java/com/terning/feature/calendar/CalendarRouth.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.terning.feature.calendar | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
@Composable | ||
fun CalendarRoute() { | ||
CalendarScreen() | ||
} | ||
|
||
@Composable | ||
fun CalendarScreen() { | ||
Column(modifier = Modifier.fillMaxSize()) { | ||
Text(text = "νμ μ€ν¬λ¦°") | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
feature/src/main/java/com/terning/feature/calendar/navigation/CalendarNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.terning.feature.calendar.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.calendar.CalendarRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
|
||
fun NavController.navigateCalendar(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = Calendar, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.calendarNavGraph() { | ||
composable<Calendar> { | ||
CalendarRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object Calendar : MainTabRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...feature/mock/navigation/MockNavigation.kt β ...eature/home/navigation/HometNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.terning.feature.mock.navigation | ||
package com.terning.feature.home.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.mock.MockRoute | ||
import com.terning.feature.home.HomeRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
fun NavController.navigateMock(navOptions: NavOptions? = null) { | ||
fun NavController.navigateHome(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = Mock, | ||
route = Home, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.mockNavGraph() { | ||
composable<Mock> { | ||
MockRoute() | ||
fun NavGraphBuilder.homeNavGraph() { | ||
composable<Home> { | ||
HomeRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object Mock : MainTabRoute | ||
data object Home : MainTabRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...java/com/terning/feature/mock/MockItem.kt β ...va/com/terning/feature/myPage/MockItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/terning/feature/mock/MockSideEffect.kt β .../terning/feature/myPage/MockSideEffect.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.terning.feature.mock | ||
package com.terning.feature.myPage | ||
|
||
import androidx.annotation.StringRes | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ava/com/terning/feature/mock/MockState.kt β ...a/com/terning/feature/myPage/MockState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...ature/first/navigation/FirstNavigation.kt β ...ure/myPage/navigation/MyPageNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.terning.feature.first.navigation | ||
package com.terning.feature.myPage.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.first.FirstRoute | ||
import com.terning.feature.myPage.MyPageRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
fun NavController.navigateFirst(navOptions: NavOptions? = null) { | ||
fun NavController.navigateMyPage(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = First, | ||
route = MyPage, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.firstNavGraph() { | ||
composable<First> { | ||
FirstRoute() | ||
fun NavGraphBuilder.myPageNavGraph() { | ||
composable<MyPage> { | ||
MyPageRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object First : MainTabRoute | ||
data object MyPage : MainTabRoute |
19 changes: 19 additions & 0 deletions
19
feature/src/main/java/com/terning/feature/search/SearchRouth.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.terning.feature.search | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
@Composable | ||
fun SearchRoute() { | ||
SearchScreen() | ||
} | ||
|
||
@Composable | ||
fun SearchScreen() { | ||
Column(modifier = Modifier.fillMaxSize()) { | ||
Text(text = "νμ μ€ν¬λ¦°") | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
feature/src/main/java/com/terning/feature/search/navigation/SearchNavigation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.terning.feature.search.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import com.terning.core.navigation.MainTabRoute | ||
import com.terning.feature.calendar.CalendarRoute | ||
import kotlinx.serialization.Serializable | ||
|
||
fun NavController.navigateSearch(navOptions: NavOptions? = null) { | ||
navigate( | ||
route = Search, | ||
navOptions = navOptions | ||
) | ||
} | ||
|
||
fun NavGraphBuilder.searchNavGraph() { | ||
composable<Search> { | ||
CalendarRoute() | ||
} | ||
} | ||
|
||
@Serializable | ||
data object Search : MainTabRoute |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters