Skip to content

Commit

Permalink
Merge pull request #66 from PrakashIrom/master
Browse files Browse the repository at this point in the history
Not able to navigate to Home screen after clicking the 'Checkout' button. #63
  • Loading branch information
yuvrajsinghgmx authored Oct 8, 2024
2 parents 1b9ccbc + 8afa778 commit 8f4b9c1
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@ fun ShopSmartNavBar(navController: NavHostController) {
NavigationBarItem(
selected = currentDestination?.route == item.title,
onClick = {
navController.navigate(item.title){
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 8f4b9c1

Please sign in to comment.