Local first, always
Every read shows what is stored on the device first, then refreshes from the server in the background and updates only if something changed. Screens open instantly, online or not, and nothing errors when the signal is gone.
A Flutter platform for construction contractors: jobs, estimates, invoices, scheduling, timesheets, forms and card payments, used by crews on job sites where the connection comes and goes. We have built and run the mobile app since 2022.
Contractors work in basements, new builds and rural sites. A crew lead who can't open a job, clock in or take a payment because the signal dropped stops using the app, and goes back to paper. The app had to treat the network as optional: every screen readable offline, every change saved locally and delivered later, in the right order.
Every read shows what is stored on the device first, then refreshes from the server in the background and updates only if something changed. Screens open instantly, online or not, and nothing errors when the signal is gone.
Changes are operations in a queue persisted to SQLite, so they survive the app being killed. Each one knows what it depends on: an invoice line waits for its invoice, a payment for both. 138 operation types, up to three running at once so one large photo upload never holds up a clock-in.
Online and offline are decided by whether the app's own server answers, not by pinging the internet. Three failed requests in a row switch to offline; a health check every five seconds switches back, and the queue drains the moment it does.
Records are stored as Protobuf generated from the app's models, with field numbers pinned in a ledger so a schema change can never misread what is already on a user's phone. 141 message types, still readable after every schema change.
Every change is reviewed, and every merge to the main branch can become a build for testers. Releases move from dev to release candidate to the stores through scripted CI on our own Mac build machines, and Dart-only fixes go out as code-push patches, reaching users in hours instead of waiting on store review.
Release volume has grown with the product: 75 builds in 2023, 202 so far in 2026.
We'll tell you how we'd approach it.