Mobile — Flutter

Challenges, Do's & Don'ts

A few things tend to trip people up when combining AI tools for design and coding with an offline-first Flutter app. None of this means the 8-step workflow is wrong — it’s just worth knowing about these ahead of time.

Reference

Challenges of an AI-assisted Flutter build

Source: docs/ai_workflow.md — Challenges Faced

  • The PRD and the design mockups can disagree. They're often created separately, so they don't always match on the same numbers or screens. Don't just trust one over the other — when they disagree, check both and write down which one you went with and why.
  • One small database change can touch many files. In Drift, adding a single column means updating the table definition, the repository, and the datasource's save/update code too. It's easy to forget one spot — a checklist helps more than trying to remember it every time.
  • Generated code files add noise to your diffs. Riverpod regenerates .g.dart files any time you touch a provider, even for an unrelated change. Review those generated-file diffs before you commit instead of staging everything blindly.
  • Testing on a real device has its own quirks. Tools like adb behave a little differently than you'd expect — file paths can get mangled, screenshots may come back at a different resolution than the device actually has, and a key press meant to close the keyboard can end up closing an entire popup instead. Write these down the first time you hit one.
  • Long projects need decisions written down, not just remembered. A choice made in one session (why you picked one option over another) can get lost if it only lives in someone's memory. Keep a simple decision log alongside your code so a later session — yours or a teammate's — knows what was already decided and why.
  • CLAUDE.md and skills only help if you keep them updated. They're useful in proportion to how current they are. Treating them as a one-time setup step instead of something you revisit as the project grows is how they quietly stop being useful.
Quick Reference

Dos and don'ts

The same six problems above, as a quick reminder to keep in mind while you work.

✅ Do❌ Don't
Check both the PRD and the design mockups when they disagree, and write down which one you followed and why.Assume one of them is automatically right and ignore the other.
Use a checklist when you change your database structure — one column change can touch the table, the repository, and the datasource.Trust yourself to remember every file a schema change needs to be updated in.
Review generated code file changes (like .g.dart) before you commit them.Blindly stage and commit every file, generated ones included, without checking what changed.
Write down real-device testing quirks (odd file paths, screenshot sizes, key presses) the first time you hit one.Assume a real phone or tablet will behave exactly like the simulator/emulator.
Keep a simple, written log of important decisions as the project goes on.Rely on memory — yours or a teammate's — to recall why a decision was made weeks later.
Update CLAUDE.md and your skills whenever a new rule or edge case comes up.Treat CLAUDE.md as a one-time setup file you write once and never open again.