worklore.dev · all stories · authors · build paths · skills & mcp · about

Ship a Flutter app: test it, measure it, get it into the stores

One Flutter app from finished screens to approved in the App Store, in the order the problems came up. First make sure the app opens and looks like the design. Then make its numbers right and cheap to read, count what users do without burning the analytics quota, and last get the screenshots and the review through. Each story has the commands, the real errors and a contract your agent can run on your project. The short steps between them say why the next one comes next.

Step 1: the app has to open

Start with the check every other test skips. Widget and golden tests mount screens directly, and flutter analyze runs nothing, so none of them calls your real main().

Before you build a test suite, launch the real build cold on a device or an emulator, with its slowest dependency failing on purpose. The next story is what happened when I skipped that: every test green, and the app never showed its first frame.

Step 2: lock the screens to the design

Once the app opens, the risk changes. Screens that match Figma today drift while you keep working: a spacing token changes, a shared button gets a new default, and nobody notices until a designer does.

Two stories, in this order. The first sets up golden tests, which render each screen without a device and fail the build when a pixel moves. The second is the one-time check that makes them worth trusting: every screen compared with its Figma frame before you approve it as the golden.

Step 3: the same number on every screen

A screen can match the design and still show the wrong number. When a figure is computed in two places (the server and the app, or two screens), they disagree sooner or later: rounding works differently in each language, and definitions drift.

The audit below lists every place that computes a share or an average side by side, and adds a parity test that keeps them equal.

Step 4: what each tap costs

If the app reads from a database that bills per read, every tap has a price. Count it before you have users. The next story measured 179 reads for one tap, then moved the reading to the device. It keeps the app and the server in agreement with the same parity test as the step before.

Step 5: analytics that work and don't eat the quota

Now find out what people do in the app. Two PostHog problems that look like settings but live in your Flutter code: events sent from onChanged, which fires on every keystroke, and session replay that records nothing without a wrapper widget. Neither gives an error. Other analytics SDKs that charge per event or record the screen have the same traps.

Step 6: store screenshots from the app itself

The store wants screenshots in exact pixel sizes, often in several languages, and taking them by hand means doing it again after every design change.

The two stories below build the whole set from the real app with demo data, in one command. Read them in order: the first builds the generator, the second gets the sizes right so nothing looks stretched on iPhone or iPad.

Step 7: let the reviewer in

The last step is review. Reviewers need to sign in at once, with no SMS, no emailed code and no social account. If your app only has Google or Apple sign-in, the reviewer stops at the first screen.

The story comes from an app directory review; App Store and Google Play ask for the same thing in their review notes. The answer is one password account, sandboxed so whatever the reviewer writes never reaches real users.