How younas548/recipe works
Recipe Finder is a Flutter app for discovering recipes: users browse categories or search, open a recipe for ingredients and instructions, and can save it to a locally persisted favorites list. Riverpod providers own asynchronous fetching and favorites state; screens present those results. The README documents the API and persistence integrations, but the sampled source does not include the Dart implementation, so internal wiring is shown only where the documented responsibilities support it.
Main entry points: favourites_provider.dart Favorites manager · home.dart Category home · search-screen.dart Search screen · meal_detail_screen.dart Recipe details
Components 17
App screens
- App entry
lib/main.dart - Category home
lib/screens/home.dart - Category meals
lib/screens/meal-screen.dart - Search screen
lib/screens/search-screen.dart - Recipe details
lib/screens/meal_detail_screen.dart - Favorites screen
lib/screens/favourites_screen.dart
Riverpod state
- Category fetch
lib/providers/category_provider.dart - Category fetcher
lib/providers/meal-provider.dart - Search state
lib/providers/search-provider.dart - Detail fetcher
lib/providers/meal_detail_provider.dart - Favorites manager
lib/providers/favourites_provider.dart
Recipe models
- Category model
lib/model/model.dart - Meal model
lib/model/meal-model.dart - Meal detail model
lib/model/meal_detail_model.dart
Other components
- App user
- TheMealDB API
- Shared preferences
Connections 21
- App user → App entry: opens app
- App entry → Category home: shows home
- Category home → Category fetch: requests categories
- Category fetch → TheMealDB API: fetches categories
- Category fetch → Category model: parses response
- Category home → Category meals: selects category
- Category meals → Category fetcher: requests meals
- Category fetcher → TheMealDB API: fetches meals
- Category fetcher → Meal model: parses response
- App user → Search screen: searches recipes
- Search screen → Search state: updates query
- Search state → TheMealDB API: searches meals
- Search screen → Recipe details: opens recipe
- Recipe details → Detail fetcher: requests details
- Detail fetcher → TheMealDB API: fetches details
- Detail fetcher → Meal detail model: parses response
- App user → Favorites screen: opens favorites
- Favorites screen → Favorites manager: reads favorites
- Favorites manager → Shared preferences: loads and saves
- Recipe details → Favorites manager: changes favorites
- Favorites manager → Meal model: stores meals