How abdullah-819/fitness-app-flutter works
This is a Flutter step-counter and walking-goals app: users track activity, compare it with a daily goal, and review progress over time. The README describes an offline, local-first architecture with presentation, state management, core services, and persistence. The tree also contains authentication, live route tracking, and water-tracking features, which are represented as product areas; their runtime connections are not established by the sampled source, so uncertain links are omitted.
Main entry points: home_screen.dart Home Dashboard · history_record_model.dart History Records · local_database.dart Local Database · report_screen.dart Progress Reports
Components 18
Step Activity
- Home Dashboard
lib/features/home/presentation/screens/home_screen.dart - Step Goals
lib/features/goals/data/models/goal_model.dart - Step Records
lib/features/home/data/models/step_record_model.dart
Progress Insights
- Activity History
lib/features/history/presentation/screens/history_screen.dart - History Records
lib/features/history/data/models/history_record_model.dart - Progress Reports
lib/features/history/presentation/screens/report_screen.dart - Goal Streaks
lib/features/streak/data/models/streak_model.dart - Data Export
lib/features/export
App Infrastructure
- Flutter App
lib/main.dart - Step Sensor
lib/core/services/step_sensor_service.dart - Local Database
lib/core/services/local_database.dart - Permissions
lib/core/services/permission_service.dart
Additional Features
- Auth Screens
lib/features/auth/presentation/screens/sign_in_screen.dart - Route Tracking
lib/features/track/presentation/providers/track_provider.dart - Location Service
lib/features/track/data/location_tracking_service.dart - Water Tracker
lib/features/water_tracker/presentation/screens/water_tracker_screen.dart
Other components
- App User
- Device Sensors
Connections 15
- App User → Flutter App: uses
README.md - Flutter App → Home Dashboard: presents
- Device Sensors → Step Sensor: provides sensor data
README.md - Step Sensor → Home Dashboard: supplies step data
- Home Dashboard → Step Goals: shows goal progress
README.md - Home Dashboard → Step Records: shows step count
README.md - Step Records → Local Database: stored locally
README.md - Step Goals → Local Database: stored locally
README.md - Activity History → History Records: shows daily logs
README.md - History Records → Local Database: stored locally
README.md - Progress Reports → History Records: summarizes activity
README.md - Progress Reports → Goal Streaks: shows goal streaks
README.md - Data Export → History Records: exports history
README.md - Route Tracking → Location Service: uses location
- Route Tracking → Permissions: requires permissions