Skip to content

Commit

Permalink
Not able to navigate to Home screen after clicking the 'Checkout' but…
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash committed Oct 8, 2024
1 parent 4d452e9 commit 8afa778
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,10 @@ fun ShopSmartNavBar(navController: NavHostController) {
NavigationBarItem(
selected = currentDestination?.route == item.title,
onClick = {
navController.navigate(item.title){
if(item.title!="Home"){
popUpTo(navController.graph.startDestinationId) {
saveState = true
navController.navigate(item.title) {
launchSingleTop = true
restoreState = true
}
}
launchSingleTop = true
restoreState = true
}
},
icon = {
Icon(
Expand Down

0 comments on commit 8afa778

Please sign in to comment.