A modern, AI-powered fitness and calorie tracking mobile application built using Flutter and Firebase. This app helps users monitor their daily nutrition, workouts, and progress while providing intelligent recommendations to improve their lifestyle.
- Google Sign-In using Firebase Authentication
- Secure and seamless login experience
- Automatic user profile creation
- Log daily meals
- Track calories, protein, carbs, and fats
- View remaining vs consumed calories
- Daily nutrition summary
- Predefined workouts (gym, home, yoga)
- Custom workout creation
- Track sets, reps, duration, and calories burned
- Daily activity logs
- Personalized diet recommendations
- AI-generated workout plans
- Smart insights based on user habits
- AI chat assistant for fitness queries
- Daily, weekly, and monthly statistics
- Calories intake vs burned charts
- Weight progress tracking
- Streak and consistency monitoring 🔥
- Meal reminders
- Workout reminders
- Water intake notifications
- Gamification (badges, streaks)
-### Frontend
- Flutter (Dart)
- Authentication (Firebase Auth)
- Database (Cloud Firestore)
- Cloud Functions (Serverless logic)
- Firebase Cloud Messaging (Push notifications)
- OpenAI API (or similar)
Flutter App
- ↓ -Firebase Services
- ├── Authentication
- ├── Firestore Database
- ├── Cloud Functions
- └── Push Notifications (FCM)
----
## Database Structure (Firestore)
```plaintext
users/{userId}
- name
- age
- height
- weight
- goal
-
-meals/{userId}/{date}
- totalCalories
- protein
- carbs
- fats
-
-workouts/{userId}/{date}
- exercises[]
- duration
- caloriesBurned
- BMR & TDEE calculation for personalized calorie goals
- Real-time data sync with Firestore
- AI-based recommendations using user behavior
- Background notifications using Firebase Cloud Messaging
- Clean and modern design
- Dark & Light mode support
- Smooth animations
- Interactive dashboards and charts
- Freemium model:
-
- Free: Basic tracking features
-
- Premium: AI coach, advanced analytics, personalized plans
# Clone the repository
-git clone https://github.com/your-username/fitness-app.git
-
-# Navigate to project directory
-cd fitness-app
-
-# Install dependencies
-flutter pub get
-
-# Run the app
-flutter run- Create a Firebase project
- Enable Authentication (Phone / Google)
- Set up Cloud Firestore
- Enable Firebase Cloud Messaging
- Add your
google-services.json(Android) /GoogleService-Info.plist(iOS) - Configure Firebase in Flutter
- Image-based food recognition
- Wearable device integration (Google Fit / Apple Health)
- Voice input for meal logging
- Advanced analytics & insights
- Social features (share progress)
Contributions are welcome! Feel free to fork this repository and submit a pull request.