Why BottomNavigation not showing the @Composable U...
# compose
p
Why BottomNavigation not showing the @Composable UI. Compose dependencies i am using: `````` Is there any bug in BottonNavigation compose?
🧵 3
✔️ 1
c
@Pardeep Sharma can you edit your post to put the code in this thread please? https://kotlinlang.slack.com/archives/CJLTWPH7S/p1616265877303000
✔️ 1
p
Copy code
object Compose {
    private const val activityComposeVersion = "1.0.0"
    const val activity = "androidx.activity:activity-compose:$activityComposeVersion"

    const val composeVersion = "1.0.0"
    const val ui = "androidx.compose.ui:ui:$composeVersion"
    const val material = "androidx.compose.material:material:$composeVersion"
    const val tooling = "androidx.compose.ui:ui-tooling:$composeVersion"

    private const val navigationVersion = "2.4.0-alpha06"
    const val navigation = "androidx.navigation:navigation-compose:$navigationVersion"
}
Then scaffold look like by following @FunkyMusesample:
Copy code
Scaffold(
    bottomBar = { //Bottom bar displaying fine
        GitAppBottomNavigation(navController, BottomNav.bottomNavigationEntries)
    }
) {
    NavHost(
        navController = navController,
        startDestination = RepoBottomNavRoute.route,
        builder = {
            addRepos() //this UI is not visible; Just plain White screen
        }
    )
}
private fun NavGraphBuilder.addRepos() {
    composable(RepoBottomNavRoute.route) {
        Column {
        Text(text ="This is List screen", color = Color.Blue)
      }
    }
}