Flutter expert is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Expert guidance on Flutter 3.27+ (Impeller default on all platforms, Material 3, WASM web, DevTools, Flame), Dart 3.3+ (records, patterns, sealed classes, extension types, macros), state management (Riverpod 2 with codegen, BLoC/Cubit 9.x, Signals), navigation (GoRouter 14+, auto_route), networking
Targeting Flutter for Web (WASM), Desktop, or building a game with Flame
Integrating on-device AI with firebase_ai, google_generative_ai, or MediaPipe Tasks
Optimizing widget rebuilds, memory usage, and Impeller-based frame rendering
Core principles
Const everywhere — const constructors skip rebuilds; Flutter can only optimize what it knows is stable
BLoC/Cubit as the default state manager — most stable API in the ecosystem, unchanged for years; use setState + composition for simple cases; consider Riverpod only after understanding its framework-level weight
Sealed classes + pattern matching — exhaustive state modeling; prefer native Dart 3 sealed over freezed for simple unions
http for networking baseline, Dio only when needed — interceptors, cancellation, and FormData are real reasons; don't add Dio speculatively
Drift for structured data, SharedPreferences for primitives — Hive/Isar have known in-memory risks and no isolate support; use them with eyes open
Isolate heavy work — Isolate.run() for CPU-intensive tasks; never block the main isolate
Pigeon over raw MethodChannels — type-safe platform interop; eliminate stringly-typed method names
Extension types for domain safety — zero-cost wrappers: extension type UserId(String _) implements String {} prevents primitive obsession
WASM for Flutter Web — flutter build web --wasm is the production default; CanvasKit is legacy
Reference Files
references/dart3-state-navigation.md — widget composition best practices, Dart 3.3+ records/patterns/sealed classes/extension types/macros, Riverpod 2 with codegen, BLoC/Cubit 9.x, Signals, GoRouter 14+ with StatefulShellRoute, auto_route
references/networking-storage-testing.md — Dio interceptors and cancellation, retrofit code-gen, Ferry/Artemis GraphQL, Drift reactive ORM, ObjectBox, Isar, Hive CE, Realm, SharedPreferences, widget tests, golden tests, Patrol 3.x native automation, alchemist golden tests, Mocktail, bloc_test
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.