Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setContent {
- YandexMusicTheme {
- val navController = rememberNavController()
- NavHost(
- navController = navController,
- startDestination = createRoutePattern<RootDestinations.Auth>(),
- ) {
- composable<RootDestinations.Auth> {
- AuthScreen({
- navController.navigate(createRoutePattern<RootDestinations.MainApp>())
- })
- }
- navigation<RootDestinations.MainApp>(
- startDestination = createRoutePattern<MainAppDestinations.Dashboard>(),
- ) {
- mainAppRoute()
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement