Hackathon project. Contributed to the Flutter application and its offline mapping and routing paths.
The problem
The moment you most need directions to the nearest hospital is often the moment you have no signal. A navigation app that requires the network has failed exactly when it mattered.
The approach
A Flutter app with a dual-mode mapping engine. Online, it pulls live tiles and traffic from Mapbox. Offline, it renders MBTiles vector maps stored on the device and routes against local JSON service data. Riverpod watches connectivity and rebuilds only the affected layers, so the switch between modes is a state change rather than a restart.
Decisions
Treat offline as a first-class mode
Offline is not a degraded fallback bolted on at the end — the map renderer, the service directory and the routing all have an on-device implementation, so the UI is the same either way.
Riverpod for connectivity transitions
Connection state changes mid-journey. Scoping rebuilds to the affected widgets means markers and route overlays swap sources without tearing down the map.