diff --git a/Code Snapshots/09 State Management/07 Finished/lib/screens/tabs.dart b/Code Snapshots/09 State Management/07 Finished/lib/screens/tabs.dart index e96a18c0..576ecdaa 100644 --- a/Code Snapshots/09 State Management/07 Finished/lib/screens/tabs.dart +++ b/Code Snapshots/09 State Management/07 Finished/lib/screens/tabs.dart @@ -42,6 +42,17 @@ class _TabsScreenState extends ConsumerState { ), ); } + else if (identifier == 'meals') { + final availableMeals = ref.watch(filteredMealsProvider); + await Navigator.of(context).push( + MaterialPageRoute( + builder: (ctx) => MealsScreen( + title: 'Available Meals', + meals: availableMeals, + ), + ), + ); + } } @override