Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

The three Flutter libraries that make Settl feel instant

The short version

Your app doesn't need to be faster. It needs to feel faster. Settl, my expense app, never makes you watch a spinner when you hit save, and it gets there with one idea: save on the phone first, sync later.

Three free, open-source (MIT) Flutter/Dart libraries do the work, and each one has a single job.

Library Its one job in Settl Repo
Brick Offline-first data layer: a write lands in the phone's SQLite first, so the row is on screen instantly, then goes to the server in the background. Offline writes wait in a queue and retry until they land. github.com/GetDutchie/brick
Riverpod State: when an expense changes, every screen that shows it (your balance, the group, the activity feed) rebuilds from the same source. github.com/rrousselGit/riverpod
Drift A typed SQLite database for the pending-intents queue: anything that has to wait for a signal. github.com/simolus3/drift

How Settl uses each one

Library Packages What it does in the app
Brick brick_offline_first_with_rest, brick_sqlite Writes locally first (optimistic local write), then pushes to the REST API in the background. Failed or offline writes sit in Brick's SQLite request queue and are retried. Every write carries a uuid Idempotency-Key, so a retry never saves twice.
Riverpod flutter_riverpod One ledger as the single source of truth. Balance, group and activity all watch it, so one change updates all three.
Drift drift, drift_flutter A typed table for the pending-intents queue, for example a voice entry like "Dinner 40 with Sam" that is waiting for a connection.

Copy these prompts

Paste them into Claude Code (or any AI that can see your project).

1. Plan the instant-save stack

I'm building a Flutter app that should feel instant. Use Brick (offline_first_with_rest + brick_sqlite) so writes save to local SQLite first and sync to my REST API in the background with retries. Use Riverpod so every screen that shows a record rebuilds when it changes. Use Drift for a typed table of anything that has to wait for a connection. Show me the plan before you change any files.

2. Make retries safe

Add an idempotency key (a uuid) to every write my app sends to the server, and make the server ignore a write it has already applied with the same key. Show me where a retry could currently create a duplicate.

If you are building…

Run this on your codebase

Find every place my app awaits the server before updating the screen. List which could save locally first and sync in the background, and which can't (and why).

Get the next one in your inbox