Android, Jetpack Compose, AndroidDev, Software Architecture.
navController.currentBackStack.map { backStack -> backStack .map { it.destination.route } .lastOrNull { navigationBarRoutes.contains(it) } .let { it == route } } } Lastly we use it in the NavigationBar to show and hide indicators for particular items. NavigationBar { val isHomeSelected by