QR-based field-work supervision. A supervisor dispatches tasks and issues QR codes; field agents scan them on site to confirm work, and their live GPS location is reported back in real time. Built as a single monorepo with two Flutter apps sharing one Firebase backend.
Supervisor โ Firebase (Realtime DB) โ Field agent
--------------------------------โผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
qr-generator โโ creates QR โโโโโบโ โ
user mgmt โโโโ assigns tasks โโโบโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ login
live map โโโโโโโ locations โโโโโโโโโโโโ GPS stream โโโโโโโโโโโโโ background svc
๐ task-done notification โโโโโโโโโโโโโ scan + mark done โโโโโโโ QR scanner
admin issues the work, client confirms it happened, and everyone sees it live.
Dispatch/
โโโ client/ ๐งญ Field-agent app
โ โโโ lib/
โ โ โโโ screens/ login, dashboard (map), tasks, QR scanner, about, lock-check
โ โ โโโ utils/ permissions, location service, telegram logger, battery handler
โ โโโ android/ ยท ios/ ยท linux/ ยท macos/ ยท web/ ยท windows/
โโโ admin/ ๐๏ธ Supervisor dashboard
โโโ lib/
โ โโโ models/ user + task
โ โโโ screens/ dashboard (live users), QR generator, users mgmt, tasks
โ โโโ โฆ about, live location, profile edit, lock-check
โโโ android/ ยท ios/ ยท macos/ ยท web/ ยท windows/
- Login against Firebase Realtime DB (username/password).
- QR scanner (
mobile_scanner) confirms work on site; completion writes back to Firebase immediately. - Live location streamed to a Flutter Map on the dashboard.
- Runs in the background โ keeps the screen awake, fires local notifications, and pings a Telegram logger with activity.
- Graceful permission, battery-optimization, and background-service handling.
- QR generator (
qr_flutter) produces scannable codes for new agents / sites โ name, location, phone, category. - User management creates accounts and assigns named tasks.
- Live dashboard watches every user on a map.
- Instant alerts โ a local notification fires the moment an agent marks a task done.
| Layer | Tool |
|---|---|
| Clients | Flutter / Dart |
| Backend | Firebase Realtime Database (wirya-qr project) |
| Mapping | flutter_map + latlong2 / geolocator |
| QR | mobile_scanner (client) ยท qr_flutter (admin) |
| Ops | flutter_background_service, wakelock_plus, Telegram logger |
Each app is a standard Flutter project and builds independently:
# ๐งญ field agent app cd client flutter pub get flutter run # ๐๏ธ supervisor app cd admin flutter pub get flutter run
Firebase config (project wirya-qr) lives in each app's lib/firebase_options.dart and firebase.json.
MIT ยฉ 2026 ammar0xff