Flutter checklist¶
Copy this list into a pull request, design review or project kickoff and tick what applies. Rules are grouped by level and sorted by score (criteria). Each links to the file that explains it and cites its sources. Automatable names tools that can check the rule in CI (see the file's "How to enforce" section).
Also apply the general checklist.
This file is generated by python3 scripts/rank.py fix from the guidelines. Don't edit it by hand.
Strongly recommended (9–10)¶
-
FLUTTER-1(9) Separate the UI layer (views and view models) from the data layer (repositories and services), and add a domain layer of use cases only when needed. (specific/flutter) Automatable: bloc_lint, avoid_flutter_imports, DCM, avoid-banned-imports.
Recommended (6–8)¶
-
FLUTTER-2(8) Make repositories the source of truth for app data, with services that wrap external APIs. (specific/flutter) -
FLUTTER-3(8) Use unidirectional data flow and immutable data models. (specific/flutter) Automatable: bloc_lint, avoid_flutter_imports, Dart analyzer. -
FLUTTER-4(7) Cover logic with unit tests, widgets with widget tests, and critical flows with integration tests. (specific/flutter) -
FLUTTER-7(7) Describe custom widgets to screen readers with theSemanticswidget, setting a label and properties such asbuttonorheader, and make every tap target at least 48 by 48 dp on Android and 44 by 44 pt on iOS. (specific/flutter) Automatable: Flutter accessibility guideline matchers,meetsGuideline. -
FLUTTER-5(6) Choose a state management approach that fits the app and the team, and use it consistently for app state.setStateis fine for widget-local state. (specific/flutter) -
FLUTTER-8(6) Let text follow the font size set in the operating system, which Flutter's text widgets do by default, and make every layout leave room for text at the largest setting, testing on a small screen. (specific/flutter)
Conditional (1–5)¶
-
FLUTTER-6(5) Model user actions as commands, and model operation outcomes asResultvalues instead of throwing across layers. (specific/flutter)