Skills

Flutter Best Practices

Use when writing, reviewing, refactoring, or planning Flutter/Dart code, screens...

Install

npx skills add evanca/flutter-ai-rules --skill flutter-best-practices -g -a claude-code -y
Category
Testing
Updated
5d ago
License
MIT
Context cost
Mediumabout 1,594 tokens
Runs scripts
No, instructions only

What it does

Use when writing, reviewing, refactoring, or planning Flutter/Dart code, screens, features, project structure, state management, folders, widgets, cubits/blocs, repositories, services, or tests.

Flutter Best Practices

Standards for building maintainable Flutter apps, distilled from the official Flutter architecture guide and LeanCode's experience shipping 40+ Flutter projects (including a 30-developer banking app). Apply these when writing new code; when touching existing code, prefer consistency with the surrounding codebase and raise conflicts with these standards rather than silently rewriting.

How to use this skill

Read the reference file that matches the task. Read more than one when tasks overlap (e.g. a new feature touches both structure and coding style).

TaskRead
Design layers, decide where logic lives, MVVM, repositories/servicesreferences/architecture-layers.md
Create/organize a feature, folder structure, state management wiringreferences/feature-structure.md
Write or review Dart/Flutter code, widgets, tests, lintsreferences/dart-coding-practices.md
Multi-team/multi-package apps, monorepo, navigation, localization, API contracts, E2E testsreferences/enterprise-scale.md
App localization setup, reusable UI package string ownership, language picker visibilityreferences/localization-package-boundaries.md

For a quick task (small widget fix, one-line review comment), the core rules below may be enough on their own.

Core rules (always apply)

Architecture

Read the whole SKILL.md on GitHub

More in Testing