-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
111c9f2
commit 33bf929
Showing
6 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
17 changes: 16 additions & 1 deletion
17
app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/HomeScreen.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,7 +1,22 @@ | ||
package indi.dmzz_yyhyy.lightnovelreader.ui.home | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.navigation.compose.NavHost | ||
import androidx.navigation.compose.composable | ||
import androidx.navigation.compose.rememberNavController | ||
import indi.dmzz_yyhyy.lightnovelreader.ui.Screen | ||
import indi.dmzz_yyhyy.lightnovelreader.ui.home.reading.ReadingScreen | ||
|
||
@Composable | ||
fun HomeScreen( | ||
onOpenBook: (Int) -> Unit | ||
) { | ||
|
||
val navController = rememberNavController() | ||
NavHost(navController = navController, startDestination = Screen.Home.Reading.route) { | ||
composable(route = Screen.Home.route) { | ||
ReadingScreen( | ||
onOpenBook = onOpenBook | ||
) | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/reading/ReadingScreen.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,9 +1,9 @@ | ||
package indi.dmzz_yyhyy.lightnovelreader.ui.home.reading | ||
|
||
import androidx.navigation.compose.rememberNavController | ||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
fun ReadingScreen( | ||
onOpenBook: (Int) -> Unit | ||
) { | ||
val navController = rememberNavController() | ||
} |