Nitesh Singh
05/14/2025, 1:15 PMRestaurantList(
onItemClick = {
restaurant -> // Modify RestaurantList to have onItemClick
// onRestaurantClick(restaurant.id) // Call the navigation callback
navController.navigate(Screen.RestaurantDetails.createRoute(restaurant.id))
},
restaurantslist = RestaurantState.restaurants
)
composable(route = Screen.RestaurantDetails.route,
arguments = listOf(navArgument("restaurantId") {
type = NavType.StringType
})) {
RestaurantDetail(
navController = navController,
onSeeMoreClick = { navController.navigate(Screen.FoodMenuItemScreen.route) },
onBackClick = { navController.popBackStack() }
)
}
above this is my nevigation code but i am geting error . below is my error how i will fix that error ?
Navigation destination that matches request NavDeepLinkRequest{ uri=<android-app://androidx.navigation/restaurantMenu/ShVhWhKveEKAukjuTg7Y> } cannot be found in the navigation graph NavGraph(0x0) startDestination={Destination(0xa268bffc) route=login}