Skip to content

NextGenXplorer/NutriGuide-Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NutriGuid - Your Personal Wellness Guide

A comprehensive Flutter-based mobile application that helps users gain, lose, or maintain body weight based on their BMI value, using offline-first, rule-based nutrition and exercise guidance.

โœจ Features

๐ŸŽฏ Core Functionality

  • BMI Calculator: Automatic BMI calculation and categorization
  • Calorie Engine: Personalized daily calorie targets using Mifflin-St Jeor equation
  • Nutrition Guidance: 30+ food items with filtering by goal and dietary preference
  • Exercise Library: 20+ exercises with BMI-based recommendations
  • Habit Tracking: Daily tracking for water, exercise, meals, and sleep
  • Progress Tracking: Weight and BMI history with visual trends
  • Smart Tips: Contextual wellness advice based on your habits
  • Gamification: Streak tracking and achievement system

๐Ÿ“ฑ User Experience

  • Beautiful Material 3 design
  • Dark mode support
  • Offline-first architecture (works without internet)
  • Zero operational costs (no APIs or subscriptions)
  • Educational content about BMI, calories, and wellness
  • Medical disclaimers for Play Store compliance

๐Ÿš€ Getting Started

Prerequisites

  • Flutter SDK (3.9.2 or higher)
  • Dart SDK
  • Android Studio / VS Code
  • Android device or emulator

Installation

  1. Clone or navigate to the project

    cd nutriguid_app
  2. Install dependencies

    flutter pub get
  3. Run the app

    flutter run

๐Ÿ“‚ Project Structure

lib/
โ”œโ”€โ”€ main.dart                    # App entry point
โ”œโ”€โ”€ models/                      # Data models
โ”‚   โ”œโ”€โ”€ user_profile.dart
โ”‚   โ”œโ”€โ”€ food_item.dart
โ”‚   โ”œโ”€โ”€ exercise_item.dart
โ”‚   โ”œโ”€โ”€ habit_entry.dart
โ”‚   โ”œโ”€โ”€ progress_entry.dart
โ”‚   โ””โ”€โ”€ achievement.dart
โ”œโ”€โ”€ services/                    # Business logic
โ”‚   โ”œโ”€โ”€ database_service.dart   # SQLite operations
โ”‚   โ”œโ”€โ”€ nutrition_service.dart  # Food filtering & meal planning
โ”‚   โ”œโ”€โ”€ exercise_service.dart   # Workout recommendations
โ”‚   โ”œโ”€โ”€ tips_service.dart       # Smart tips engine
โ”‚   โ””โ”€โ”€ notification_service.dart
โ”œโ”€โ”€ screens/                     # UI screens
โ”‚   โ”œโ”€โ”€ onboarding/
โ”‚   โ”œโ”€โ”€ home/
โ”‚   โ”œโ”€โ”€ nutrition/
โ”‚   โ”œโ”€โ”€ exercise/
โ”‚   โ”œโ”€โ”€ tracker/
โ”‚   โ”œโ”€โ”€ progress/
โ”‚   โ”œโ”€โ”€ education/
โ”‚   โ””โ”€โ”€ settings/
โ”œโ”€โ”€ utils/                       # Utilities
โ”‚   โ”œโ”€โ”€ constants.dart
โ”‚   โ”œโ”€โ”€ theme.dart
โ”‚   โ””โ”€โ”€ validators.dart
โ””โ”€โ”€ widgets/                     # Reusable widgets

assets/
โ””โ”€โ”€ data/
    โ”œโ”€โ”€ nutrition_database.json  # 30+ food items
    โ””โ”€โ”€ exercise_library.json    # 20+ exercises

๐Ÿ”ง Key Technologies

  • Flutter: Cross-platform mobile framework
  • SQLite (sqflite): Local database for user data
  • SharedPreferences: Simple key-value storage
  • Provider: State management
  • fl_chart: Progress charts
  • flutter_local_notifications: Reminders

๐Ÿ“Š BMI Calculation

The app uses the standard BMI formula:

BMI = weight (kg) / heightยฒ (m)

Categories:

  • < 18.5: Underweight
  • 18.5 - 24.9: Normal
  • 25.0 - 29.9: Overweight
  • โ‰ฅ 30.0: Obese

๐Ÿฝ๏ธ Calorie Calculation

Uses the Mifflin-St Jeor equation for BMR:

For Men:

BMR = 10 ร— weight(kg) + 6.25 ร— height(cm) - 5 ร— age + 5

For Women:

BMR = 10 ร— weight(kg) + 6.25 ร— height(cm) - 5 ร— age - 161

Daily Calories:

Daily Calories = BMR ร— Activity Factor

Activity Factors:

  • Low (little/no exercise): 1.2
  • Medium (3-5 days/week): 1.55
  • High (6-7 days/week): 1.9

Goal Adjustments:

  • Weight Gain: +300 kcal
  • Weight Loss: -400 kcal
  • Maintain: No change

๐Ÿƒ Exercise Recommendations

Exercises are filtered based on:

  • BMI suitability: Each exercise has min/max BMI range
  • Difficulty level: Beginner, Intermediate, Advanced
  • Type: Cardio, Strength, Flexibility

Calorie burn calculation:

Calories = MET ร— weight(kg) ร— duration(hours)

๐Ÿ“ฑ Screens Overview

  1. Welcome Screen: App introduction with medical disclaimer
  2. Profile Setup: Onboarding form for user details
  3. Dashboard: Main hub with BMI, streak, tips, and quick habits
  4. Nutrition: Filtered food recommendations with nutritional info
  5. Exercise: Workout plans with step-by-step instructions
  6. Habit Tracker: Daily tracking with progress indicator
  7. Progress: Weight logging and history
  8. Education: Wellness information and tips
  9. Settings: Profile management, dark mode, and app reset

โš ๏ธ Medical Disclaimer

IMPORTANT: NutriGuid provides general wellness guidance and educational information only. This app is NOT a substitute for professional medical advice, diagnosis, or treatment. Always consult with a healthcare provider before starting any new diet or exercise program.

๐ŸŽฎ Gamification

  • Daily Streaks: Track consecutive days of habit completion
  • Achievements: Unlock badges for milestones
  • Progress Visualization: Charts and trends

๐Ÿ”” Notifications (Optional)

  • Water reminders (every 2 hours)
  • Exercise reminders (customizable time)
  • Weekly weight check reminders

๐ŸŒ™ Dark Mode

Full dark mode support with automatic theme switching.

๐Ÿ“ฆ Building for Release

Android

flutter build apk --release

Or for app bundle (recommended for Play Store):

flutter build appbundle --release

iOS (if configured)

flutter build ios --release

๐Ÿ›ก๏ธ Privacy

  • 100% Offline: All data stored locally
  • No tracking: No analytics or third-party services
  • No accounts: No user registration required
  • Data control: Easy app reset option

๐Ÿ“ Play Store Compliance

  • Medical disclaimers prominently displayed
  • No medical claims or diagnosis features
  • Educational content only
  • Offline-first privacy

๐Ÿ”ฎ Future Enhancements (Not Implemented)

  • Cloud sync for backup
  • AI-powered meal planning
  • Wearable device integration
  • Social features
  • Recipe suggestions

๐Ÿ› Troubleshooting

App won't start:

  • Run flutter clean then flutter pub get
  • Check Flutter version: flutter --version

Database errors:

  • Use app reset in Settings
  • Reinstall the app

Notifications not working:

  • Check device notification permissions
  • Ensure notifications are enabled in Settings

๐Ÿ“„ License

This project is created for educational and wellness purposes.

๐Ÿ‘จโ€๐Ÿ’ป Development

Built with:

  • Flutter 3.9.2+
  • Dart 3.0+
  • Material Design 3

Code Quality:

  • Well-commented code
  • Modular architecture
  • Separation of concerns
  • Reusable components

๐Ÿ™ Acknowledgments

  • Nutrition data compiled from USDA FoodData Central
  • Exercise information from fitness research
  • BMI and calorie formulas from medical standards

Made with โค๏ธ for your wellness journey

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published