Playbook

Migrating to Flutter

A rewrite asks the business to stop shipping features for months. In an app that takes orders every day, that was never on the table. So at Third Wave Coffee we moved to Flutter one feature at a time, inside the live native apps. This is what worked, and what I would change.

Start as a guest. Flutter’s add-to-app support compiles a Flutter module into the existing native apps. The first Flutter surface I shipped was a bottom sheet, in both apps, in July 2024: small enough to prove the whole setup on before anything important depended on it.

Let native keep the session. Login, tokens and navigation stayed native, and Flutter asked the host for what it needed. One source of truth for who the user is means one place for auth bugs.

Move whole features. Each step moved one complete feature across: cart suggestions, promo balance, delivery, the address book. Every release shipped something finished and testable on its own, and a problem could be traced to a single feature.

Watch the bridge cost. Every Flutter surface inside a native app needs bridge code in Dart, Kotlin and Swift. Shared state costs more: data that several surfaces need, like the cart or the selected store, has to round-trip through the native app, because each Flutter engine runs in its own isolate. That cost is fine while Flutter owns a few features. Once it owns most of them, it is time to make Flutter the app.

Decide the exit on day one. In October 2025 I turned the module into a standalone Flutter app, and the bridges went away. Next time I would agree up front on what triggers that switch, for example a target number of features in Flutter, instead of deciding once the bridge code had grown large.

Know when not to do this. This approach is for apps that cannot stop. If an app is small, or a full redesign is coming anyway, a clean rewrite can be cheaper than months of bridge code.

Related: Flutter add-to-app, Platform channels.