Hey Flutter devs! ๐
I wanted to share a technical breakdown of a full-stack workforce and shift tracking system I've been building with **Flutter 3** and **Supabase**:
### ๐ฑ Architecture & Key Packages:
* **State Management & Navigation:** `provider` (v6.1) combined with `go_router` (v17.5) with auth redirect guards.
* **Backend:** `supabase_flutter` (v2.17) for Auth, Row Level Security (RLS) data policies, Storage buckets, and Realtime postgres changes.
* **Photo Inspection Markup:** `pro_image_editor` (v14.4) โ field workers can annotate site photos (arrows, freehand draw, text, cropping) directly before uploading.
* **Location Verification:** `geolocator` (v14.0) + OpenStreetMap (Nominatim) for automatic reverse geocoding on clock-in / clock-out.
* **Push & Timers:** `firebase_messaging` (FCM HTTP v1) + `flutter_local_notifications` for persistent foreground shift notifications.
* **Dynamic White-Labeling:** `flutter_dynamic_icon_plus` โ switches the Android launcher icon dynamically based on the company branding selected by the admin.
### ๐ Solved Engineering Challenges:
**Accurate Shift Timers Without Battery Drain:** Instead of running heavy background timers that Android OS aggressively kills, we store millisecond timestamp baselines in `shared_preferences` and Supabase. On app resume or device reboot, elapsed time is computed deterministically.
**In-App Photo Markup:** Integrating `pro_image_editor` allowed seamless local image editing at 60fps without extra native platform code.
**Multi-Tenant White-Labeling:** The mobile client dynamically switches its theme accent, company logo, and app icon based on the active company profile.
---
### ๐ Live Interactive Demo (Web & Android APK):
I compiled a standalone release APK and deployed a companion React admin panel to test the end-to-end flow:
* ๐ฑ **Download Android Demo APK:** https://worktrack-live.vercel.app/WorkTrack-Demo-v1.0.0.apk
* ๐ **Companion Web Portal:** https://worktrack-live.vercel.app
CurrentVictory142 shares a technical breakdown of a full-stack workforce and shift tracking app built using Flutter 3 and Supabase. The post details the app's architecture, key packages used, and engineering challenges solved, such as accurate shift timers and in-app photo markup. A live demo APK and web portal are available, and the source code is offered for purchase. Feedback on architecture and UI flow is requested.
*(Admin login: `admin` / Password: `demo1234` | Worker login: `demo_user` / Password: `demo1234`)*
---
### ๐ฆ Source Code:
For anyone interested in using this as a commercial boilerplate or client template (Flutter 3 app + React 19 Admin + Supabase migrations), I've packaged the complete source code on Codester ($34):
Would love your feedback on the architecture and UI flow! How do you usually handle persistent background shift state in your Flutter apps?