Freelance & client workLead developerJul 2024 – Dec 2024

Accelero Logistics: freight-bidding driver app

TL;DR

I took over the driver app after the initial UI and built most of it in about 2.5 months: maps and routing, bidding, ride state machine, OTP and photo proof, push deep links and store releases.

Period
Jul 2024 – Dec 2024
My role
Built most of the driver app (Stacked MVVM)
Technologies
6
Diagrams
2
Reading time
3 min

FlutterDartStacked MVVMGoogle MapsPush (OneSignal / FCM)Hive

5 chapter(s) collapsed in quick read

Executive Summary

The owner took over the driver app after the initial UI and built most of it in ~2.5 months (Oct–Dec 2024):

  • Google Maps integration with route polylines and routing cache; pickup → ride navigation (deep link to Google Maps)
  • current / default location home, an active-ride screen, and the ride status machine synced to the API with local caching (Hive + SharedPreferences / ObjectBox experiments)
  • new-trip bidding cards with accept / reject
  • OTP-confirmed trip completion and proof-of-delivery photo upload (multipart, with image compression)
  • a multi-step driver signup (account → email OTP → driver details → NIC → licence → password), profile editing with image upload, document and vehicle management, forgot / reset password
  • OneSignal push with deep links (including terminated-state navigation), a background service that keeps a persistent ongoing-ride notification, the upgrader in-app update prompt, and store releases (Android + iOS) with package / icon renaming

Architecture: Stacked (MVVM) with get_it locator, view / viewmodel pairs, a service layer (HTTP / Dio, trip, user, signup, location, image, notification, OneSignal, background, ride store, local storage) and Hive entities with mappers.

Tech Stack (driver)

Dart ≥ 3.4.1; stacked ^3.4.1, get_it ^7.1.4, google_maps_flutter ^2.9, flutter_polyline_points ^2.1, geolocator ^13, geocoding ^3, url_launcher, dio ^5.7 + http ^1.2 + mime + http_parser, image_picker, flutter_image_compress, image ^4.2, onesignal_flutter ^5.2.8, flutter_background_service ^5.0.5, flutter_local_notifications ^17.1, permission_handler ^11.3, hive / hive_flutter / hive_generator, path_provider, shared_preferences, pinput (OTP), quickalert, fluttertoast, flutter_svg, flutter_keyboard_visibility, navigation_history_observer, upgrader ^10.3, package_info_plus, flutter_dotenv, logger, intl 0.19, launcher icons. Namespace com.bidgo.driver. Customer app (team): stacked, google_maps_flutter, geolocator, lottie, geocoding, image_picker, share, dio, pay (Google / Apple Pay), polyline points, dotenv.

Architecture

lib/
├─ main.dart · app/{app.locator.dart, routes.dart (139), assets, app_constant}
├─ common/ app bar, nav bar (327), styling (340), colors, fields, validations (118), back-press observers,
│ widgets: custom_quick_alert (540), custom_quick_alert_2 (1,723), review stars, progress
├─ models/ biddings (344), trip_details (322), signup (669), status_trip, trip, trip_point, profile, vehicle/*, proof_of_delivery, result…
├─ services/ network/{http_service (369), trip_service, user_service, user_signup_service (1,212)}, api_server,
│ background_service (273), location_service, image_service, image_compression_service,
│ notification_service, one_signal_service (179), user_status_service,
│ store/{local_storage_service (409), ride_store_service (476)},
│ database/{hive_database, entity/{biddings, payment, trip_point}, mappers/*}
└─ ui/views/ ~40 view + viewmodel pairs (Stacked)
Architecture
Diagram as text
flowchart LR
 V[Views] <--> VM[ViewModels Stacked] --> S[Services via get_it]
 S --> API[(Accelero REST API)]
 S --> HIVE[(Hive: biddings, payments, trip points)]
 S --> OS[(OneSignal)]
 S --> MAPS[(Google Maps / Directions)]
 BG[Background service] --> NOTIF[Persistent ride notification]

Challenges & Solutions

Challenge Solution
Map camera / location icon issues Camera positioning fix, custom map icons
Ride state lost on app restart Hive cache + prefs for online status
Package rename for store Folder / MainActivity package refactor (several attempts)
Notification tap when terminated Launch-route handling + back-press-to-home observer
Ongoing ride visibility Foreground background service with persistent notification
Large photo uploads Image compression service

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.