Flutter/Dart Code Review Best Practices — portable workflow
Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses.
Use it only when the request supplies this domain, framework, data source or artifact; a shared keyword is not a match. Related skills, each for its own concern: bosskuai-dart-flutter-patterns, bosskuai-swiftui-patterns, vue-patterns, accessibility.
Workflow
Read the source workflow first, then work through these sections in order:
- General Project Health.
- Dart Language Pitfalls.
- Widget Best Practices.
- Widget decomposition:.
- Const usage:.
- Key usage:.
- Resolve its
scripts/, references/, assets/ and template paths against references/upstream/, not the project root. Source skill names map through SOURCE.json (bossku skills show <id>). ECC slash commands, agent names and package-root paths are not installed: use what this host has, or say what is missing.
- Check the project's tool versions and the source prerequisites first: read the SDK constraint (
environment: sdk) in pubspec.yaml, the resolved versions in pubspec.lock, and flutter --version. Check the latest stable Flutter release at docs.flutter.dev/release/archive at work time, and use only APIs present in the installed version. Run flutter analyze and read its output. A documented command is an example, not permission to install packages, add an account, expose secrets, upload private content or change an external service.
- It can need a named provider, MCP server or API: check that it is available and in scope, report it when it is not, and never invent its output.
Done when
Complete the source “Immutability & value equality (for immutable-state solutions: BLoC, Riverpod, Redux):”, “Widget test quality:” procedure for this task. Keep its resulting artifact, command output or cited evidence, and state what remains unverified.
- Type traps: a JSON whole number cast with
as double (it throws on the Dart VM), money held in a double (it rounds), and numbers that arrive as text.
- Concurrency:
BuildContext used after an await with no mounted check, setState after dispose, and a late async result that overwrites newer state.
- Zero downtime: a changed API or stored-data format must still read what older app builds wrote.
- Full quality bar:
../../references/checklists/engineering-quality-bar.md.
If an input, provider, runtime or authorisation is missing, stop that step, carry on with read-only analysis, and say exactly what is missing. A generated plan alone is not completion.
Adapted from the locally reviewed affaan-m/ECC snapshot: provenance and hashes in SOURCE.json, the original text and resources in references/upstream/ under its MIT licence. Copyright (c) 2026 Affaan Mustafa.
1---2name: bosskuai-flutter-dart-code-review3description: "Use when the task explicitly concerns flutter dart code review. Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-flutter-dart-code-review6 origin: ECC-adaptation7---89# Flutter/Dart Code Review Best Practices — portable workflow1011Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses.1213Use it only when the request supplies this domain, framework, data source or artifact; a shared keyword is not a match. Related skills, each for its own concern: `bosskuai-dart-flutter-patterns`, `bosskuai-swiftui-patterns`, `vue-patterns`, `accessibility`.1415## Workflow1617Read [the source workflow](references/upstream/SKILL.md) first, then work through these sections in order:18191. 1. General Project Health.202. 2. Dart Language Pitfalls.213. 3. Widget Best Practices.224. Widget decomposition:.235. Const usage:.246. Key usage:.2526- Resolve its `scripts/`, `references/`, `assets/` and template paths against `references/upstream/`, not the project root. Source skill names map through [SOURCE.json](SOURCE.json) (`bossku skills show <id>`). ECC slash commands, agent names and package-root paths are not installed: use what this host has, or say what is missing.27- Check the project's tool versions and the source prerequisites first: read the SDK constraint (`environment: sdk`) in `pubspec.yaml`, the resolved versions in `pubspec.lock`, and `flutter --version`. Check the latest stable Flutter release at docs.flutter.dev/release/archive at work time, and use only APIs present in the installed version. Run `flutter analyze` and read its output. A documented command is an example, not permission to install packages, add an account, expose secrets, upload private content or change an external service.28- It can need a named provider, MCP server or API: check that it is available and in scope, report it when it is not, and never invent its output.2930## Done when3132Complete the source “Immutability & value equality (for immutable-state solutions: BLoC, Riverpod, Redux):”, “Widget test quality:” procedure for this task. Keep its resulting artifact, command output or cited evidence, and state what remains unverified.3334- Type traps: a JSON whole number cast with `as double` (it throws on the Dart VM), money held in a `double` (it rounds), and numbers that arrive as text.35- Concurrency: `BuildContext` used after an `await` with no `mounted` check, `setState` after `dispose`, and a late async result that overwrites newer state.36- Zero downtime: a changed API or stored-data format must still read what older app builds wrote.37- Full quality bar: `../../references/checklists/engineering-quality-bar.md`.3839If an input, provider, runtime or authorisation is missing, stop that step, carry on with read-only analysis, and say exactly what is missing. A generated plan alone is not completion.4041Adapted from the locally reviewed `affaan-m/ECC` snapshot: provenance and hashes in [SOURCE.json](SOURCE.json), the original text and resources in [references/upstream/](references/upstream/SKILL.md) under its [MIT licence](references/upstream/LICENSE). Copyright (c) 2026 Affaan Mustafa.