How gitarber/habits_tracker works
Daily Habits Tracker is a cross-platform Flutter app for creating habits, setting reminders, and tracking completion and streaks. The user workflow is to enter the app, view habits, create or edit one, and record daily completion; local persistence is documented, but the sampled source does not show the Dart runtime wiring. The graph preserves README capabilities whose implementation files were not sampled and includes the Windows and Linux host-shell modules named in the source index. Those platform-shell edges are limited to relationships visible in the excerpts.
Main entry points: home_screen.dart Habit home · habits_provider.dart Habit state · main.dart App entry · add_habit_dialog.dart Habit editor
Components 24
App experience
- App entry
lib/main.dart - Onboarding
lib/screens/onboarding_screen.dart - Habit home
lib/screens/home_screen.dart - Habit tile
lib/widgets/habit_tile.dart - Add button
lib/widgets/add_habit_button.dart - Habit editor
lib/widgets/add_habit_dialog.dart - Time picker
lib/widgets/custom_time_picker.dart
Habit domain
- Habit state
lib/providers/habits_provider.dart - Habit model
lib/models/habit.dart - Habit log
lib/models/habit_log.dart
Tracking and reminders
Local persistence
- Database service
lib/services/database_service.dart - Local SQLite
Platform shells
- Windows entry
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.h - Win32 window
windows/runner/win32_window.cpp - Windows plugins
windows/flutter/generated_plugin_registrant.h - Linux entry
linux/runner/main.cc - Linux application
linux/runner/my_application.h - Linux plugins
linux/flutter/generated_plugin_registrant.h - macOS plugins
macos/Flutter/GeneratedPluginRegistrant.swift - iOS app delegate
ios/Runner/AppDelegate.swift
Other components
- App user
Connections 21
- App user → App entry: launches
- App entry → Onboarding: routes to
- App entry → Habit home: opens
- App user → Habit home: views habits
- Habit home → Habit tile: shows habits
- Habit home → Add button: offers creation
- Add button → Habit editor: opens editor
- Habit editor → Time picker: selects time
- Habit home → Habit state: uses state
- Habit editor → Habit state: updates habits
- Habit state → Habit model: manages
- Habit state → Habit log: tracks completion
- Habit state → Database service: persists data
- Database service → Local SQLite: reads and writes
- Habit home → Progress and streaks: shows progress
- Habit state → Progress and streaks: supports statistics
- App user → Daily reminders: sets reminders
- Windows entry → Flutter window: creates
windows/runner/main.cpp - Flutter window → Win32 window: extends
windows/runner/flutter_window.h - Linux entry → Linux application: creates and runs
linux/runner/main.cc - iOS app delegate → macOS plugins: names registrant
ios/Runner/AppDelegate.swift