SwoledBros
Two Flutter apps, one realtime Postgres, coach and athlete in sync.
- Role
- Lead Mobile Engineer
- Platforms
- iOS, Android
- Year
- 2025
Online coaches were running their businesses across spreadsheets, WhatsApp and MyFitnessPal, with no view into whether clients actually followed the plan.
SwoledBros is two apps against one Supabase instance: a coach console for programming workouts and macros, and an athlete app for executing them. The athlete app is the one that shipped: published to both the App Store and Play Store, built end to end including review and compliance. The coach console runs alongside it.
- 2
- apps, one architecture
- Realtime
- coach → athlete sync
- 2 stores
- athlete app published to both
- Flutter
- Riverpod codegen
- Freezed
- Supabase Realtime
- GoRouter
- FL Chart
The app, screen by screen.

01 Dashboard
Hydration, today's training, a log-workout shortcut

02 Training Lab
The weekly plan, sets and reps editable inline

03 Nutrition Lab
Macro totals by meal, running against the day's target
How it was built.
Code-generated Riverpod and Freezed throughout
- Problem
- Two apps sharing a schema drift apart. A field renamed in the coach app surfaces as a runtime null in the athlete app, in production, on a device you cannot inspect.
- Approach
- riverpod_annotation and Freezed with build_runner across both codebases. Providers are compile-time verified; domain entities are immutable unions with generated JSON decoding, so a schema mismatch fails the build rather than the app.
- Trade-off
- Schema errors surface at compile time. The cost is a build_runner step in the loop and generated files in the tree, a good trade for two apps that must agree.
Realtime rather than pull-to-refresh
- Problem
- When a coach updates a training split, the athlete needs to see it. Polling wastes battery and still leaves a stale window; manual refresh means athletes train against yesterday's programme.
- Approach
- Supabase Realtime subscriptions on the tables both apps share, so a write in the coach console pushes to the athlete's device without a refresh.
- Trade-off
- Changes land immediately. Subscription lifecycle has to be managed carefully against app background and resume. The usual cost of realtime, worth paying here.