flutter-expert

Solid

Flutter/Dart gotchas and decision criteria. Covers Riverpod vs BLoC, widget optimization, and platform-specific pitfalls.

AI & Automation 24 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
81
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

> **AI-consumed reference.** Optimized for Claude to read during execution. > Human-readable explanation: see [docs/architecture/HIERARCHICAL_PLANNING.md](../../../docs/architecture/HIERARCHICAL_PLANNING.md) > or [docs/getting-started/](../../../docs/getting-started/) depending on topic. # Flutter Expert — Gotchas & Decisions Use Context7 for full Flutter/Dart docs. ## Key Decisions ```toon decisions[4]{choice,use_when}: Riverpod vs BLoC,"Riverpod: simpler apps + compile-safe. BLoC: complex event-driven + team conventions" StatelessWidget vs StatefulWidget,"Stateless default. Stateful only for local mutable state (animations/controllers)" go_router vs Navigator,"go_router for declarative deep linking. Navigator for simple stack-based" Feature-first vs Layer-first,"Feature-first: lib/features/auth/{data|domain|presentation}" ``` ## Gotchas - Always `const` constructors for immutable widgets — huge rebuild savings - `BuildContext` used after async gap → widget may be unmounted. Check `mounted` first - `ListView.builder` not `ListView(children:[...])` for long lists — avoids building all items - `sealed class` for Result pattern (Success/Failure) — exhaustive switch - Riverpod: `ref.watch` in build, `ref.read` in callbacks. Never `ref.watch` in callbacks - BLoC: never emit state after `close()` — check `isClosed` in async operations - Platform channels: always handle `MissingPluginException` for web/desktop - `TextEditingController` and `AnimationController` MUST ...

Details

Author
nguyenthienthanh
Repository
nguyenthienthanh/aura-frog
Created
8 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

flutter-expert

Use when building cross-platform applications with Flutter 3+ and Dart. Invoke for widget development, Riverpod/Bloc state management, GoRouter navigation, platform-specific implementations, performance optimization.

4 Updated yesterday
zacklecon
AI & Automation Listed

flutter-expert

Use for Flutter and Dart work on iOS and Android. Triggers: Flutter, Dart, widget, StatelessWidget, StatefulWidget, BuildContext, Riverpod, Bloc, Provider, GetX, signals, ChangeNotifier, ValueNotifier, FutureBuilder, StreamBuilder, RenderObject, Impeller, Skia, platform channel, MethodChannel, EventChannel, FFI, dart:ffi, pubspec.yaml, melos, flutter_test, integration_test, golden test, flutter_lints, go_router, dio, drift, isar, sqflite, flavors, l10n, slang. Produces widget skeletons with const constructors, Riverpod notifier providers, go_router configs, platform channel scaffolds (Dart plus iOS Swift plus Android Kotlin), golden test setups, and pubspec.yaml with pinned versions and analyzer rules. Anchored to Flutter 3.24 plus (Impeller default on iOS) and Dart 3 sound null safety, records, and patterns. Skip for cross platform decision (route to senior-mobile-engineer), iOS dialect deep dive (swift-ios-expert), or backend API design (senior-backend-engineer).

0 Updated 1 weeks ago
iamdemetris
AI & Automation Solid

react-native-expert

React Native gotchas and decision criteria. Covers FlatList optimization, storage hierarchy, and platform-specific pitfalls.

24 Updated today
nguyenthienthanh