flutter
Installation
SKILL.md
Flutter Guide
Applies to: Flutter 3.x, Dart 3.x, Mobile (iOS/Android), Web, Desktop
Core Principles
- Widget Composition: Build complex UIs by composing small, focused widgets
- Declarative UI: Describe what the UI should look like; Flutter handles rendering
- Immutable Widgets: Widgets are configuration objects; state lives in State classes or providers
- Single Codebase: One Dart codebase targets iOS, Android, Web, macOS, Windows, Linux
- Riverpod for State: Use Riverpod as the primary state management solution
- Material 3 First: Default to Material 3 design system with
useMaterial3: true
Guardrails
Widget Rules
- Keep widget
buildmethods under 50 lines (extract sub-widgets) - Prefer
constconstructors for all stateless widgets
Related skills