Skip to content

About

An app leveraging AI to scan, analyze, and provide detailed insights on food contents, health benefits, recipes, and dietary preferences, with options to save and share results as PDFs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

AI MealMingle

A Flutter project is mainly used for

  • Scan The Food to analyze what is in it Using AI by doing the following:
    • Unveiling Contents and Caloric Breakdown.
    • Healthiness and Benefits of Featured Foods.
    • Facts and Summaries.
    • Unveiling Dietary Preferences and Status.
    • How to Prepare it at Home.
  • Ability to save this scan result in a local database.
  • Ability to share this scan result as a PDF.
  • Searching Meals and Get Recipes Using AI.

Download the app from the Play Store

Download the app For Windows

The main Technologies & Packages/Plugins used in the App

  • Using hive as a local Database:
    • hive_generator to generate Adapters to work with custom data types.
  • Using json_serializable To generate to/from JSON code for a class.
  • Using Large Language Model API from Google Gemini Pro Vision for Freeform Prompt and Image Recognizing.
  • Using Large Language Model API from Google Gemini Pro for Chat Prompt.
  • Using screenshot to capture widgets as Images Food Scan results.
  • Using pdf to create a full multi-pages document with this screenshots images.
  • Using share_plus to share the PDF.
  • The app supports Localizations in Arabic and English:
  • The app supports Theming for Light and Dark.
  • The app supports 12 different colors scheme, the user can change it in settings.
  • Using Web Scraping using html the dom package.
    • To scrape Wikipedia images to get food and ingredients images.
    • Ability to scale the images.
  • Using path_provider plugin to save The files images in ApplicationDocumentsDirectory.
  • Using url_launcher plugin.
  • Using flutter_markdown to renders Markdown for AI responses.
  • The Animation in the App is done Using flutter_animate Package.

The App Architecture, Directory structure, And State Management

  • Using Provider State Management.

  • Using get_it for Dependency injection (service locator).

  • Using Model–view–viewmodel MVVM architectural pattern.

    FLUTTER-MVVM-ARCHITECTURE

Directory Structure

lib
│
│───main.dart
│───l10n
│  
└───src
    │
    │───core
    |    |
    |    |──error
    |    │──network
    |    │──theme
    |    |   │──colors
    |    |   │──dark_theme
    |    |   └──light_theme   
    |    |
    |    └──util
    |        |──builders
    |        │──classes
    |        │──extensions
    |        │──functions
    |        └──widgets   
    |    
    │───features
    |    |
    |    |──food_scanning
    |    │──meals
    |    └──home_and_drawers_screens
    |
    │───app.dart      
    └───injection_container.dart

Example of One feature: food_scanning

│───features
         |
         │──food_scanning
         |   |
         |   |──data
         |   |   |
         |   |   |──models
         |   |   |   └──food_scanning_result_model.dart
         |   |   |
         |   |   └──services
         |   |       |
         |   |       |──favorite_food_scanning_local_data_service.dart
         |   |       |──favorite_food_scanning_local_storage_service.dart
         |   |       └──food_scanning_service.dart
         |   |   
         |   │──viemodels
         |   |   |
         |   |   |──favorite_food_scanning_viewmodel.dart
         |   |   └──food_scanning_viewmodel.dart 
         |   |   
         |   └──views
         |       |
         |       |──screens
         |       |   |──all_favorite_food_scan_screen.dart
         |       |   |──favorite_food_scan_screen.dart
         |       |   |──food_scan_result_screen.dart
         |       |   └──food_scan_screen.dart
         |       |
         |       |──providers
         |       |   |──convert_image_to_png.dart
         |       |   |──favorites_food_scan.dart
         |       |   └──food_scan.dart
         |       | 
         |       └──widgets
         |           |──favorite_food_scan
         |           |──food_scan
         |           |──share_as_pdf
         |           |──custom_tap.dart
         |           |──customized_markdown.dart
         |           |──image_and_choices_appbar.dart
         |           └──overview_result.dart
         |       
         |      
         |
         │──meals
         └──home_and_drawers_screens

App pages

Food Scan Screens

Food Scan Screen Getting Image Scan Result Screen
Waiting for results The results in Markdown The result can be saved in Favorites
The result can be shared as PDF The PDF can be shared to external apps
Favorites Food scans If the result previously loaded it saved to the local It still can get other results from Favorites

Search Meals Screens with AI

Search for meals using Gemini Pro One result, the images from Wikipedia by Screping
The result meal in details with images The meal can be toggled as favorites

Meals Screen

Categories Screen Some meals in the categories Meal in details with images
Favorite meals Screen Meals can be removed from favorites

Settings Screens

Meals Settings Screen General Settings Screen
Theme Mode can be changed Language can be changed Color can be changed
Example in different settings Example in different settings Example in different settings

About

An app leveraging AI to scan, analyze, and provide detailed insights on food contents, health benefits, recipes, and dietary preferences, with options to save and share results as PDFs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages