kopia lustrzana https://github.com/vitorpamplona/amethyst
19 wiersze
595 B
Kotlin
19 wiersze
595 B
Kotlin
package com.vitorpamplona.amethyst.ui.navigation
|
|
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.navigation.NavHostController
|
|
import androidx.navigation.compose.NavHost
|
|
import androidx.navigation.compose.composable
|
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
|
|
|
@Composable
|
|
fun AppNavigation(
|
|
navController: NavHostController,
|
|
accountViewModel: AccountViewModel
|
|
) {
|
|
NavHost(navController, startDestination = Route.Home.route) {
|
|
Routes.forEach {
|
|
composable(it.route, content = it.buildScreen(accountViewModel))
|
|
}
|
|
}
|
|
} |