utsavsavani08/rain-skill-main/flutter-expert
Claude Code and agent skill by utsavsavani08/rain-skill-main
- community
Checking that the SKILL.md file is still in the repository.
Flutter and Dart expert. Load for any Flutter app work — widget trees, state management (Riverpod, BLoC, Provider, GetX), navigation (GoRouter, AutoRoute), platform channels, Firebase integration, performance tuning, and app store submission. Complements mobile-design (touch/UX) which should also be loaded for Flutter projects. Triggers on flutter, dart, riverpod, bloc, gorouter, pubspec, flutter pub, flutter build, flutter run.
Install
npx vskill@latest install utsavsavani08/rain-skill-main/flutter-expertSKILL.md
The same SKILL.md was published earlier as utsavsavani08/rain-skill-main/flutter-expert.
Flutter Expert — Dart & Flutter Development
Expert-level Flutter development covering architecture, state management, navigation, performance, platform integration, and release. Pairs withmobile-designfor UX/touch concerns.
Philosophy
"Widget composition over inheritance. State at the right level. Platform feel without platform lock-in."
Flutter's power comes from its composable widget tree and Dart's strong typing. Abuse it and you get unmaintainable spaghetti. Use it well and you get apps that feel native on every platform.
Mandatory checkpoint (before any Flutter work)
If any item is unclear → ask the user before writing code.
Architecture principles
Widget tree discipline
| ❌ AVOID | ✅ DO | |
|---|---|---|
StatefulWidget for everything | Use StatelessWidget + state solution | |
| Business logic inside widgets | Extract to controllers/notifiers/blocs | |
| Deep nesting (>5 levels) | Extract into named widgets | |
setState in large trees | Scoped rebuilds with Riverpod/BLoC | |
BuildContext passed down | InheritedWidget / Provider / Riverpod |
File structure (feature-first)
State management — Riverpod (preferred default)
Riverpod is the recommended choice for new Flutter projects. Use it unless the project already has BLoC/Provider established.
Provider types
| Need | Provider | |
|---|---|---|
| Simple value | Provider | |
| Async data (future) | FutureProvider | |
| Stream-based data | StreamProvider | |
| Mutable state + logic | NotifierProvider / AsyncNotifierProvider | |
| Global singleton (service) | Provider |
Riverpod patterns
BLoC (when project already uses it)
Navigation — GoRouter (preferred)
Performance — mandatory checklist
| Check | Pattern | |
|---|---|---|
| List rendering | ListView.builder with itemExtent when heights are fixed | |
| Large lists | flutter_lazy_load or pagination | |
| Image loading | cached_network_image — never raw Image.network | |
| Const widgets | Add const to every widget constructor possible | |
| Heavy builds | Use RepaintBoundary around animated sections | |
| Unnecessary rebuilds | Wrap specific watchers, not whole screens | |
| Memory leaks | Dispose controllers, subscriptions, animation controllers |
Platform integration
Platform channels (native code bridge)
Conditional platform code
Firebase integration checklist
- [ ]
firebase_coreinitialized inmain()beforerunApp - [ ]
google-services.json(Android) andGoogleService-Info.plist(iOS) in correct locations - [ ] Firestore security rules set (never open
allow read, write: if true) - [ ] Firebase Auth: use
authStateChanges()stream, not one-off calls - [ ] Crash reporting:
firebase_crashlyticsinitialized withFlutterError.onError
Testing patterns
Build & release commands
| Task | Command | |
|---|---|---|
| Run on device | flutter run | |
| Debug build (Android) | flutter build apk --debug | |
| Release build (Android) | flutter build apk --release | |
| App bundle (Play Store) | flutter build appbundle --release | |
| iOS release | flutter build ios --release | |
| Web | flutter build web --release | |
| Analyze code | flutter analyze | |
| Run tests | flutter test | |
| Check doctor | flutter doctor |
Common errors and fixes
| Error | Cause | Fix | |
|---|---|---|---|
LateInitializationError | late var not initialized | Null-check or initialize in initState | |
setState called after dispose | Async callback after widget unmounted | Check mounted before setState | |
| Render overflow | Widget too large for parent | Wrap in SingleChildScrollView or Flexible | |
| Build context across async gaps | Outdated BuildContext | Store mounted check, or use ref (Riverpod) | |
| Gradle sync failure | SDK version mismatch | flutter clean && flutter pub get | |
| Pod install failure | CocoaPods out of date | pod repo update && pod install |
Hard rules
- Never use `StatefulWidget` for business logic — extract to Notifier / BLoC / controller.
- Never call `setState` from outside the `State` class.
- Always dispose controllers — animation, text, page, scroll, stream subscriptions.
- Never block the main thread — heavy work goes in
Isolateorcompute(). - Always handle loading + error states in async consumers (no naked
.data). - Never store sensitive data in `SharedPreferences` — use
flutter_secure_storage. - Run `flutter analyze` before every task complete — treat warnings as errors.
Quick reference
| Want to | Use | |
|---|---|---|
| State management | Riverpod (new) / BLoC (existing) | |
| Navigation | GoRouter | |
| HTTP | dio with interceptors, or http for simple | |
| Image cache | cached_network_image | |
| Secure storage | flutter_secure_storage | |
| Push notifications | firebase_messaging | |
| Local storage (non-sensitive) | shared_preferences / hive | |
| Large lists | ListView.builder + itemExtent | |
| Platform checks | Platform.isIOS / Platform.isAndroid | |
| Native bridge | MethodChannel |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.rain-skill/skills/flutter-expert/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/utsavsavani08/rain-skill-main/flutter-expert)