Flutter expert

From rnavarych/alpha-engineer · View interactive version

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

How to use this skill

Skill file

Flutter Expert

When to use

Core principles

  1. Const everywhere — const constructors skip rebuilds; Flutter can only optimize what it knows is stable
  2. 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
  3. Sealed classes + pattern matching — exhaustive state modeling; prefer native Dart 3 sealed over freezed for simple unions
  4. http for networking baseline, Dio only when needed — interceptors, cancellation, and FormData are real reasons; don't add Dio speculatively
  5. Drift for structured data, SharedPreferences for primitives — Hive/Isar have known in-memory risks and no isolate support; use them with eyes open
  6. Isolate heavy work — Isolate.run() for CPU-intensive tasks; never block the main isolate
  7. Pigeon over raw MethodChannels — type-safe platform interop; eliminate stringly-typed method names
  8. Extension types for domain safety — zero-cost wrappers: extension type UserId(String _) implements String {} prevents primitive obsession
  9. WASM for Flutter Web — flutter build web --wasm is the production default; CanvasKit is legacy

Reference Files

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.