How cr-raksa/todo-mobile-app-with-flutter works
This is a cross-platform Flutter todo app. The main workflow is users signing in, loading tasks, then creating, editing, or deleting them; task state uses the API when available and local persistence as a fallback. Registration and profile editing are additional user-data workflows, while settings expose dark mode. The README documents these flows and the architecture; Dart implementation files were not excerpted, so relationships below rely on those documented statements rather than direct source inspection.
Main entry points: todo_store.dart Todo Store · api_service.dart API Service · login_screen.dart Login · todo_screen.dart Todo Screen
Components 17
Identity and Profile
- Login
lib/features/auth/login_screen.dart - Registration
lib/features/auth/register_screen.dart - User State
lib/features/providers/user_provider.dart - Profile Screens
lib/features/profile/presentation - User Storage
lib/features/models/user_share/user_share_pre.dart
Task Management
- Todo Screen
lib/features/presentation/todo_screen.dart - Add Task
lib/features/presentation/add_task_screen.dart - Edit Task
lib/features/presentation/edit_task_screen.dart - Task Widgets
lib/features/widgets - Todo Store
lib/features/models/todo_store.dart - Task Models
lib/features/models/task_enums.dart
Data and Persistence
- API Service
lib/features/services/api_service.dart - json-server
lib/data/db.json - Shared Preferences
Other components
- User
Connections 22
- User → App Entry: uses
README.md - App Entry → Login: routes to
README.md - App Entry → Todo Screen: routes to
README.md - User → Login: signs in
README.md - User → Registration: registers
README.md - Login → API Service: tries login
README.md - Login → User Storage: falls back to
README.md - Registration → API Service: tries registration
README.md - Registration → User Storage: falls back to
README.md - User State → User Storage: stores session
README.md - User → Todo Screen: manages tasks
README.md - Todo Screen → Todo Store: uses state
README.md - Add Task → Todo Store: creates task
README.md - Edit Task → Todo Store: updates task
README.md - Todo Screen → Task Widgets: displays tasks
README.md - Todo Store → API Service: syncs tasks
README.md - Todo Store → Shared Preferences: caches tasks
README.md - API Service → json-server: sends requests
README.md - User → Profile Screens: edits profile
README.md - Profile Screens → API Service: updates profile
README.md - Profile Screens → User Storage: falls back to
README.md - User → Settings: changes preferences
README.md