Overview
V.I.T.A (Vital Intake Tracking Assistant) is a Flutter-based health and nutrition app that tracks food intake, calories, water consumption, and fitness goals. It features on-device image recognition powered by MobileNetV2 (TensorFlow Lite), barcode scanning, multi-source food database search, and automated backup/restore.
Features
- AI Food Recognition – Snap a photo to identify food using on-device MobileNetV2 image classification
- Barcode Scanning – Scan product barcodes to instantly retrieve nutritional data
- Calorie & Macro Tracking – Log meals with detailed protein, carbs, fat, fiber, sugar, and sodium breakdown
- Water Intake Tracking – Track daily water consumption by glasses
- Multi-Source Food Search – Query USDA FoodData Central, Open Food Facts, custom foods, and a built-in fallback database
- Meal Categories – Organize food logs by meal type (breakfast, lunch, dinner, snacks)
- Food History & Charts – Visualize nutrition trends with calendar view and interactive charts
- User Profiles & Goals – Personalized calorie targets based on age, height, weight, gender, and activity level
- Onboarding Flow – Guided setup with user profile creation
- Auto Backup & Restore – Automatic and manual database backup with file picker restore
- Custom Food Database – Add and save custom food items for quick logging
- Settings & Preferences – Configure API sources, backup frequency, and display options
Architecture
- Framework: Flutter (Dart) with Material 3 design
- ML Model: MobileNetV2 1.0 224 (TensorFlow Lite) — on-device inference, 224×224 RGB input, 1001 ImageNet classes
- Database: SQLite (sqflite) with versioned schema migrations
- Food APIs: USDA FoodData Central, Open Food Facts, built-in fallback database
- Camera: camera + image_picker for photo capture, mobile_scanner for barcode scanning
- Charts: fl_chart for nutrition visualization
- Calendar: table_calendar for food history browsing
- Platform: Android