How immad-khan/mazdoorlink works
MazdoorConnect is a Flutter prototype for connecting customers with service workers. Its main workflow is role selection and authentication, followed by customer booking and worker onboarding/job handling; shared history, chat, and settings support both roles. The README documents route capabilities, while sampled implementation is limited to the Firebase chat-notification function, so unsampled subsystem links are shown only where the documented route flow supports them.
Main entry points: main.dart Flutter App · job_posting_screen.dart Job Posting · index.js Push Notifications · worker_home.dart Worker Dashboard
Components 20
App and State
- Flutter App
lib/main.dart - Role and Language
lib/app_state.dart - Role Selection
lib/screens/home_screen.dart - Authentication
lib/screens/auth_login_screen.dart
Customer Services
- Customer Home
lib/screens/customer_home.dart - Issue Selection
lib/screens/issue_selection_screen.dart - Job Posting
lib/screens/job_posting_screen.dart - Price Estimate
lib/screens/price_estimation_screen.dart - Worker Recommendations
lib/screens/recommendation_arguments.dart - Job Tracking
lib/screens/tracking_map_screen.dart
Worker Services
- Worker Onboarding
lib/screens/worker_services_setup_screen.dart - Worker Dashboard
lib/screens/worker_home.dart - Worker Job Tracking
lib/screens/worker_tracking_screen.dart
Shared and Messaging
- Booking History
lib/screens/booking_history_screen.dart - Chat
lib/screens/call_interaction_screen.dart - Settings
lib/screens/privacy_settings_screen.dart - Push Notifications
firebase/functions/index.js
Other components
- User
- Firestore
- Firebase Messaging
Connections 19
- User → Flutter App: opens
- Flutter App → Role and Language: uses shared state
- Flutter App → Role Selection: routes to
- Flutter App → Authentication: routes to
- Flutter App → Customer Home: routes to
- Flutter App → Worker Dashboard: routes to
- Flutter App → Booking History: routes to
- Flutter App → Chat: routes to
- Flutter App → Settings: routes to
- Customer Home → Issue Selection: continues to
- Issue Selection → Job Posting: continues to
- Job Posting → Price Estimate: continues to
- Job Posting → Worker Recommendations: continues to
- Worker Recommendations → Job Tracking: continues to
- Worker Onboarding → Worker Dashboard: continues to
- Worker Dashboard → Worker Job Tracking: handles jobs
- Push Notifications → Firestore: reads conversation and user
- Firestore → Push Notifications: triggers on message
- Push Notifications → Firebase Messaging: sends notification