-
-
Save ferPrieto/e3d923700c31d12b74874816325f8d63 to your computer and use it in GitHub Desktop.
This is the general view of the whole content in EntryPointActivity (it's been simplified for better understanding)
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
setContent { | |
SpaceXTheme { | |
val bottomNavigationItems = listOf( | |
BottomNavigationScreens.Dashboard, | |
BottomNavigationScreens.Launches | |
) | |
val navController = rememberNavController() | |
Scaffold( | |
bottomBar = { | |
BottomNavigation(navController, bottomNavigationItems) | |
} | |
) { | |
NavHost(navController, startDestination = BottomNavigationScreens.Dashboard.route) { | |
composable(BottomNavigationScreens.Dashboard.route) { | |
InitDashboardScreen() | |
} | |
composable(BottomNavigationScreens.Launches.route) { | |
InitLaunchesScreen() | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment