How does the app_router know to return to the “To Buy” tabs when the user clicks the back button after executing the following in _handlePopPage
if (route.settings.name == FooderlichPages.groceryItemDetails) {
groceryManager.groceryItemTapped(-1);
}
It seems like there’s no matching pages since selected_index != -1
and isCreatingNewItem == false
.
Thanks.