How ahmedzap/tito works
This is a Flutter application for managing requests and their approval workflow, backed by Supabase and including user, voucher, reporting, notification, and offline/synchronization features suggested by the source tree. The apparent primary journey is a user creating a request, tracking its workflow, and acting on assigned tasks. The README is only Flutter boilerplate, and the Dart implementation was not excerpted, so most client-to-backend relationships are shown as unverified rather than asserted. Platform runner scaffolding is omitted as incidental to the product architecture.
Main entry points: requests_repository.dart Request data access · app_router.dart App navigation · request_details_screen.dart Request details · requests_provider.dart Request state
Components 26
App experience
- App entry
lib/main.dart - App navigation
lib/core/router/app_router.dart - Home and tasks
lib/features/dashboard/presentation/widgets/tasks_screen.dart - Request screens
lib/features/presentation/screens/create_request_screen.dart - Request details
lib/features/presentation/screens/request_details_screen.dart - Sign-in screen
lib/features/presentation/screens/login_screen.dart
Request operations
- Request state
lib/features/presentation/providers/requests_provider.dart - Request creation
lib/features/presentation/providers/create_request_provider.dart - Request data access
lib/features/requests/data/requests_repository.dart - Workflow timeline
lib/features/dashboard/presentation/widgets/workflow_timeline.dart - Authentication
lib/features/auth/data/auth_repository.dart
Data and sync
- Local database
lib/data/local/database.dart - Request records
lib/data/local/daos/requests_dao.dart - Sync queue
lib/data/local/daos/sync_queue_dao.dart - Synchronization
lib/core/services/sync_service.dart - Supabase client
lib/data/remote/supabase_client.dart
Workflow services
- Start workflow
supabase/functions/start-workflow/index.ts - Workflow actions
supabase/functions/workflow-action/index.ts - Create user service
supabase/functions/create-user/index.ts
Cross-cutting services
- Notifications
lib/core/services/notification_service.dart - Push notification function
supabase/functions/send-push-notification/index.ts - Reports
lib/features/reports/reports_repository.dart - PDF and spreadsheet export
lib/core/services/pdf_service.dart - Vouchers
lib/features/requests/data/vouchers_repository.dart
Other components
- User
- Supabase service
Connections 28
- User → App entry: opens
- App entry → App navigation: starts
- App navigation → Home and tasks: routes to
- App navigation → Request screens: routes to
- App navigation → Request details: routes to
- App navigation → Sign-in screen: routes to
- Request screens → Request creation: submits to
- Request details → Request state: loads from
- Home and tasks → Request state: loads from
- Request creation → Request data access: uses
- Request state → Request data access: uses
- Request details → Workflow timeline: displays
- Sign-in screen → Authentication: authenticates through
- Request data access → Supabase client: accesses
- Request data access → Request records: uses
- Request records → Local database: reads and writes
- Synchronization → Sync queue: uses
- Synchronization → Supabase client: synchronizes with
- Request data access → Start workflow: starts workflow
- Request data access → Workflow actions: submits action
- Start workflow → Supabase service: updates
- Workflow actions → Supabase service: updates
- Create user service → Supabase service: creates account
- Notifications → Push notification function: requests push
- Push notification function → Supabase service: uses
- User → Reports: requests reports
- Reports → PDF and spreadsheet export: exports
- User → Vouchers: manages