Hamza GATTAL
val navController = rememberNavController() Scaffold( bottomBar = { BottomNavigation { val navBackStackEntry by navController.currentBackStackEntryAsState() val currentDestination = navBackStackEntry?.destination items.forEach { screen -> BottomNavigationItem( ... .., selected = currentDestination?.hierarchy?.any { it.route == screen.route } == true, ... ) } } } )
Ian Lake
A modern programming language that makes developers happier.