flutter-dart-code-review

Reviews Flutter and Dart code against a library-agnostic checklist covering widgets, state management, performance, and security.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/freedom909/real-estate-saas --skill flutter-dart-code-review-freedom909
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flutter-dart-code-review
Source: https://github.com/freedom909/real-estate-saas/tree/main/.trae/skills/flutter-dart-code-review
Command: npx skills add https://github.com/freedom909/real-estate-saas --skill flutter-dart-code-review-freedom909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing Flutter/Dart codebases consistently is hard because best practices span widgets, state management, performance, accessibility, security, and more, and rules differ across state management libraries. This Skill provides a comprehensive, library-agnostic review checklist so reviewers catch common pitfalls systematically. ## Core Features & Use Cases - Library-agnostic state management review: Covers BLoC, Riverpod, Provider, GetX, MobX, Signals, and built-in state with a quick-reference mapping table. - 15 review domains: Includes Dart language pitfalls, widget best practices, performance, testing, accessibility, security, navigation, error handling, i18n, DI, and static analysis. - Use Case: Before merging a pull request in a Flutter app using Riverpod, run this checklist to flag missing const constructors, unhandled AsyncValue states, hardcoded colors, and BuildContext usage after async gaps. ## Quick Start Review my Flutter project's lib folder using the flutter-dart-code-review checklist and report violations grouped by category.

Frequently Asked Questions about flutter-dart-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Flutter code for best practices?▼

Use a structured checklist covering widget decomposition, const usage, state management discipline, performance, and security. This Skill provides 15 review categories with concrete checkboxes and Dart code examples for common pitfalls.

What state management issues should I check in Flutter code review?▼

Check that business logic lives outside widgets, state objects are immutable with proper equality, async states model loading/success/error explicitly, and subscriptions are disposed. The checklist adapts rules to BLoC, Riverpod, Provider, GetX, MobX, and Signals.

Does this checklist work with Riverpod and BLoC?▼

Yes, the checklist is library-agnostic and includes a quick-reference table mapping universal principles to BLoC, Riverpod, Provider, GetX, MobX, Signals, and built-in state. Solution-specific conventions like ref.watch chains and BlocObserver are addressed.

How to catch Flutter performance problems during code review?▼

Look for missing const constructors, expensive operations in build(), missing ListView.builder for large lists, unlocalized setState calls, and Opacity in animations. The performance section lists concrete checks for rebuilds, images, and lazy loading.

What security checks apply to Flutter apps?▼

Verify tokens use platform-secure storage, API keys are not hardcoded in Dart source, user input is validated, HTTPS is enforced, and no sensitive data is logged. The security section covers storage, key handling, validation, and network concerns.