Advertisement
Guest User

Untitled

a guest
Jun 5th, 2023
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.81 KB | None | 0 0
  1.         setContent {
  2.             YandexMusicTheme {
  3.                 val navController = rememberNavController()
  4.                 NavHost(
  5.                     navController = navController,
  6.                     startDestination = createRoutePattern<RootDestinations.Auth>(),
  7.                 ) {
  8.                     composable<RootDestinations.Auth> {
  9.                         AuthScreen({
  10.                             navController.navigate(createRoutePattern<RootDestinations.MainApp>())
  11.                         })
  12.                     }
  13.                     navigation<RootDestinations.MainApp>(
  14.                         startDestination = createRoutePattern<MainAppDestinations.Dashboard>(),
  15.                     ) {
  16.                         mainAppRoute()
  17.                     }
  18.                 }
  19.             }
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement