A Flutter mobile application that uses AI to generate recipes from scanned ingredients. This application integrates OpenAI for robust ingredient detection and recipe generation.
- AI Ingredient Detection: Snap a photo or choose from the gallery to automatically detect ingredients using advanced vision models.
- Smart Recipe Generation:
- Generates comprehensive recipes based on available ingredients.
- Customizable Options:
- Adjust servings (1-12 people)
- Dietary restrictions (Vegetarian, Vegan, Gluten-Free, Keto, etc.)
- Cuisine preferences (Italian, Mexican, Asian, etc.)
- Complexity levels (Simple, Medium, Complex)
- Additional notes for specific requests
- Real-time Streaming: Watch the recipe being created in real-time.
- Recipe Management:
- Save your favorite recipes.
- View detailed instructions, ingredients, and nutritional information.
- Organized tabbed interface for easy reading.
- Framework: Flutter (v3.10+)
- State Management: Riverpod
- Navigation: GoRouter
- Networking: Dio
- Local Database: Drift (SQLite)
- AI/ML Integration:
- OpenAI API: Used for vision recognition and recipe text generation.
- UI/UX:
- Material Design 3
- Flutter Animate for smooth interactions
- Shimmer for loading states
- Google Fonts
-
Clone the repository
git clone https://github.com/niyiment/meal_planner.git
-
Install dependencies
flutter pub get
-
Configure Environment Variables
- Create a
.envfile in the root directory. - Add your API keys:
OPENAI_API_KEY=your_openai_api_key
- Create a
-
Run the app
flutter run
lib/
├── core/ # Core functionality (Network, Database, Utils, Service)
│ ├── network/ # Dio setup and interceptors
│ ├── service/ # AI Service implementations (OpenAI, Gemini)
│ └── ...
├── features/ # Feature-based architecture
│ ├── home/ # Home screen and navigation
│ ├── scan/ # Camera, AI processing logic, and Recipe Options
│ └── recipe/ # Recipe details, list, and database interactions
└── main.dart # Entry point
Contributions are welcome! Please feel free to submit a Pull Request.



