flutter-dart-code-review

Review Flutter and Dart code for widgets, state management, performance, and security.

Updated Sep 13, 2025
One-click install
npx skills add https://github.com/llmh333/employee_management_spring --skill flutter-dart-code-review-llmh333
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-dart-code-review
Source: https://github.com/llmh333/employee_management_spring/tree/main/.gemini/skills/flutter-dart-code-review
Command: npx skills add https://github.com/llmh333/employee_management_spring --skill flutter-dart-code-review-llmh333

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams systematically find Flutter/Dart bugs, performance problems, accessibility gaps, and architectural smells before they reach production by providing a consistent review checklist.

Core Features & Use Cases

  • Widget & UI quality checks: Ensures widgets stay presentational, build() remains light, const usage is correct, and rebuild boundaries are optimized.
  • Dart correctness & safety checks: Flags strict typing issues, null-safety misuse, error-handling problems, and common performance pitfalls (e.g., async misuse, string concatenation in loops).
  • State management, testing, security, and maintainability checks: Verifies state modeling avoids impossible states, subscriptions are disposed, tests cover critical flows, and security practices around storage and API calls are followed.
  • Use Case: Review a new Flutter feature (e.g., employee list + detail screen) to ensure correct state transitions, safe async handling, accessible UI, and clean separation between widgets and business logic.

Quick Start

Use the flutter-dart-code-review checklist to review a Flutter/Dart change set for widget best practices, state management correctness, performance, accessibility, and security concerns.

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 widgets for performance and rebuild issues?

To review Flutter widgets for performance, verify widgets stay presentational, build() remains light, const usage is correct, and rebuild boundaries are optimized to prevent unnecessary widget reconstruction.

What are common Dart null-safety and async misuse pitfalls to check before release?

Common Dart pitfalls include strict typing issues, null-safety misuse, error-handling problems, and async misuse, alongside string concatenation in loops, which should be flagged during systematic code reviews.

How do I check Flutter state management for impossible states and subscription disposal?

Check Flutter state management by verifying state modeling avoids impossible states and ensuring subscriptions are properly disposed, preventing memory leaks and inconsistent app states during refactoring or new features.

What is the best way to review Flutter accessibility and security in a PR?

The best way to review Flutter accessibility and security in a PR is to verify accessible UI implementation and ensure safe dependency usage, secure storage, and protected API calls are followed.

Does this Flutter code review approach work with any state management library?

Yes, this Flutter code review approach works with production apps regardless of state management library or routing approach, systematically checking lifecycle, disposal, and navigation patterns across any architecture.

When do I need to enforce strict analyzer and lint discipline in Dart?

Enforce strict analyzer and lint discipline in Dart during PR readiness checks to catch architectural smells, verify correct lifecycle behavior, and ensure robust error handling before code reaches production.