Skip to content

Premkumar2910A/infit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

InFit - AI-Powered Nutrition Tracker

Modern, aesthetic nutrition tracking app for India 🇮🇳

Photo-based calorie counter with bilingual (Tamil/English) voice assistant.


🚀 Quick Start

Prerequisites

  • Flutter SDK 3.2.0 or higher
  • Dart 3.0+
  • Android Studio / VS Code
  • Android device or emulator

Setup Steps

  1. Clone the repository (if using git)

    cd p:\Infit
  2. Install dependencies

    flutter pub get
  3. Download fonts (Important!)

    You need to download these fonts and place them in assets/fonts/:

    Inter Font:

    Noto Sans Tamil:

    Roboto Mono:

    Folder structure should be:

    p:\Infit\
    ├── assets\
    │   └── fonts\
    │       ├── Inter-Regular.ttf
    │       ├── Inter-Medium.ttf
    │       ├── Inter-SemiBold.ttf
    │       ├── Inter-Bold.ttf
    │       ├── NotoSansTamil-Regular.ttf
    │       ├── NotoSansTamil-SemiBold.ttf
    │       ├── NotoSansTamil-Bold.ttf
    │       └── RobotoMono-Medium.ttf
    
  4. Create asset folders

    mkdir assets
    mkdir assets\fonts
    mkdir assets\images
    mkdir assets\icons
    mkdir assets\animations
  5. Run the app

    flutter run

📱 Current Features (MVP - Week 1)

✅ Completed

  • Beautiful UI design system (better than Cal AI)
  • Light & Dark mode (AMOLED optimized)
  • Dashboard with calorie tracker
  • Macro breakdown (Protein, Carbs, Fat)
  • Meal logging with fake data
  • Bottom navigation (4 tabs)
  • Floating action button
  • Food confirm screen
  • Camera screen (placeholder)

🚧 Coming Soon

  • Real camera integration
  • AI food recognition
  • Voice assistant (Tamil/English)
  • Insights & charts
  • Profile & settings
  • Firebase integration
  • Data persistence

🎨 Design System

InFit uses a custom design system inspired by Cal AI but with improvements:

  • Warmer colors - Orange/saffron accents instead of gray
  • Better dark mode - Pure black (#000000) for AMOLED
  • Bilingual support - Optimized for Tamil + English
  • Cultural design - Subtle Indian design elements
  • Smooth animations - 120fps on supported devices

See design/InFit_Design_System.md for full specs.


📂 Project Structure

lib/
├── main.dart                           # App entry point
├── core/
│   ├── theme/
│   │   ├── app_theme.dart             # Light & dark themes
│   │   ├── app_colors.dart            # Color palette
│   │   ├── app_typography.dart        # Text styles
│   │   └── app_spacing.dart           # Spacing system
│   ├── router/
│   │   └── app_router.dart            # Navigation (GoRouter)
│   ├── models/
│   │   ├── food_item.dart             # Food item model
│   │   └── meal.dart                  # Meal model
│   └── widgets/
│       ├── calorie_card.dart          # Calorie counter widget
│       ├── macro_card.dart            # Macros widget
│       └── meal_card.dart             # Meal display widget
├── features/
│   ├── dashboard/
│   │   └── screens/
│   │       └── dashboard_screen.dart  # Home screen
│   ├── camera/
│   │   └── screens/
│   │       └── camera_screen.dart     # Camera (placeholder)
│   ├── food/
│   │   └── screens/
│   │       └── food_confirm_screen.dart
│   ├── insights/
│   │   └── screens/
│   │       └── insights_screen.dart   # Charts (placeholder)
│   └── profile/
│       └── screens/
│           └── profile_screen.dart    # Settings (placeholder)

🧪 Testing

Run tests:

flutter test

Check code quality:

flutter analyze

🐛 Troubleshooting

"Font not found" error

  • Make sure you downloaded all fonts to assets/fonts/
  • Run flutter clean then flutter pub get

"Package not found" error

  • Run flutter pub get
  • Restart your IDE

App not running

  • Make sure Flutter SDK is installed: flutter doctor
  • Check device is connected: flutter devices

📅 Development Roadmap

Week 1 (Current) ✅

  • Project setup
  • Design system
  • Dashboard with fake data

Week 2 (Next)

  • Camera integration (camera package)
  • Food confirm flow
  • Save meals to local storage (Hive)

Week 3

  • Voice assistant (TTS/STT)
  • Tamil language support
  • Daily targets calculator

Week 4

  • Insights & charts (fl_chart)
  • Profile & settings
  • Weight tracking

Week 5

  • Firebase integration
  • Cloud photo storage
  • Backend API connection

Week 6

  • AI food recognition
  • Polish & testing
  • Beta release

📖 Resources


👨‍💻 Development

Built with:

  • Flutter 3.x
  • Riverpod (state management)
  • GoRouter (navigation)
  • Material Design 3

📝 License

This is a personal project. All rights reserved.


Happy Coding! 🚀

About

AI-powered nutrition tracking app for India with Flutter, photo-based calorie tracking, and bilingual voice assistant direction

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors