# Accelero Logistics: freight-bidding driver app

> 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.

URL: https://thuyavan.netlify.app/projects/accelero-driver-app
Updated: 2026-10-12

- Role: Built most of the driver app (Stacked MVVM)
- Period: 2024-07 → 2024-12
- Technologies: Flutter, Dart, Stacked MVVM, Google Maps, Push (OneSignal / FCM), Hive

## 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.

## Portfolio Bullets

Built a production Flutter driver app for a freight-bidding platform: bids, trips, navigation, ride status and proof of delivery; released to Google Play and the App Store.

Integrated Google Maps + Directions polylines with a routing cache and current-location tracking (geolocator, geocoding).

Implemented trip completion with OTP and POD image upload (compression, multipart via Dio / http_parser / mime).

Built a 5-step driver onboarding with document capture (NIC, licence), vehicle management and profile images.

Implemented OneSignal notifications with deep linking from the terminated state, plus a foreground background-service persistent notification for ongoing rides.

Cached the current ride and bids offline with Hive (entities + mappers); added in-app update (upgrader, package_info_plus).

Wrote a mock driver API (Express, express-validator, Swagger) to unblock app development.

## Business Flow



## 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)

## Screens (~38)

Splash, slider (onboarding), sign in, create account, email OTP, driver details → NIC → licence → password, forgot password (+ OTP, new password), home (map, online toggle), bottom nav, biddings accept / reject, rides, pickup order, pickup location (+ proof of delivery), Google map view, activity, history (+ details), wallet, chat list, chat, notifications, invite friends, profile (+ picture), settings, document management / details, upload NIC, upload licence, vehicle management, add vehicle, reset password, unknown route.

## Mock API (internal path)

Express 4.21 + body-parser + express-validator 7 + swagger-jsdoc / swagger-ui-express + uuid; routes/driverRoutes.js, controllers/driverController.js, models (driver, trip, statusType), in-memory data/, validators, middlewares; docs folder.

## 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

## Metrics

Driver 34.6k Dart (~40 screens, 15 services, 20 models); 79 owner commits; 3 releases.
