Delivery Tracking

Loading preview

Starting the Flutter app

A Flutter delivery tracking map with the courier path and step-by-step order status.

Get the source

Add it to your project

Copies the Dart source into your app, so you own it. Flutter SDK only, no extra packages.

First time? Run dart pub global activate fluttertemplates_dev, or read the CLI guide.

How it works

No map SDK here. _MiniMapPainter paints a colored rectangle and one cubic route, with the courier icon simply centered over it. The timeline comes from _steps and the constant _currentStep: each _StepRow compares its index to that value to decide done and active styling, and IntrinsicHeight lets the connector line stretch to match the text. The class is named CourierTracking.

Adapting it

  • Turn _currentStep into a value from your order status stream, making the page stateful.
  • Replace _MiniMapPainter with google_maps_flutter or flutter_map, and move the marker with courier coordinates.
  • Launch the dialer from the call IconButton, which shows a demo SnackBar.