Skip to content

Code-Making/AI-Recipe-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Recipe Generator

App Icon

Generate delicious recipes with the power of AI


Dart Flutter Riverpod

Built with the tools and technologies:

Hive Dio Gemini

πŸ“‹ Table of Contents


πŸ“– Overview

AI Recipe Generator is a smart cooking companion app built with Flutter. It helps users discover new recipes based on the ingredients they have at home. By leveraging advanced AI, it generates detailed recipes complete with instructions, cooking time, and difficulty levels, tailored to your preferences.

πŸš€ Why AI Recipe Generator?

Cooking should be fun, not a chore. Often we find ourselves staring at a fridge full of ingredients with no idea what to make. AI Recipe Generator solves this by:

  • Reducing Food Waste: Use what you already have.
  • Saving Time: No need to browse through endless recipe blogs.
  • Personalization: Get recipes that fit your specific dietary needs and cuisine preferences.

✨ Key Features

  • AI-Powered Generation: Instantly generate unique recipes based on ingredients.
  • Smart Suggestions: Get personalized recipe ideas based on your history and preferences.
  • Save Favorites: Keep your best discoveries saved locally for offline access.
  • Detailed Instructions: Step-by-step cooking guides with timing and difficulty.
  • PDF Export: Share or print recipes easily.
  • Dark/Light Mode: Beautiful UI that adapts to your system theme.

πŸ—οΈ Architecture

The application follows Clean Architecture principles to ensure separation of concerns, scalability, and testability.

Tech Stack


🏁 Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/ai_recipe_generator.git
    cd ai_recipe_generator
  2. Install dependencies

    flutter pub get
  3. Run Code Generator

    dart run build_runner build --delete-conflicting-outputs
  4. Run the App

    flutter run

πŸ“± Usage

  1. Onboarding: Complete the initial setup to verify your preferences.
  2. Input Ingredients: Enter the items you have in your kitchen.
  3. Generate: Tap "Create Recipe" and watch the magic happen.
  4. View & Save: Browse the generated recipe details and save it to your Favorites.
  5. Suggestions: Check the "Suggestions" tab for daily inspiration.

πŸ“‚ Project Structure

lib/
β”œβ”€β”€ core/           # Core utilities, theme, and shared widgets
β”œβ”€β”€ data/           # Data layer (API calls, local database implementation)
β”œβ”€β”€ domain/         # Domain layer (Entities, Use Cases, Repository Interfaces)
β”œβ”€β”€ presentation/   # UI layer (Screens, Widgets, Riverpod Providers)
└── main.dart       # App entry point

Key Components

  • Providers: Managed using Riverpod for dependency injection and state management.
  • Services:
    • RecipeRemoteDataSource: Handles AI API communication.
    • RecipeLocalDataSource: Manages Hive database storage.

πŸ“Έ Screenshots

Splash Screen Onboarding Home Screen
Suggestions Generated Recipe Favorites

Settings Screen


🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors