Hai Hoang
07/16/2024, 2:55 AMNavHost(navController = navHost, startDestination = Home) {
composable<Home> {
Home(navHost)
}
composable<Detail> { it ->
val title: Detail = it.toRoute()
Detail(title, navHost)
}
}
My business want me to create a structure that I don't need to define any composable first inside NavHost, so there are any ways to customize NavGraphBuilder that help me to define composable inside NavHost whenever I use navHost.navigate(Detail()) ?Stylianos Gakis
07/16/2024, 6:56 AMHai Hoang
07/16/2024, 7:49 AM