Dart/Flutter Patterns
Production Dart and Flutter patterns: null safety, immutable state with Freezed, BLoC and Riverpod, GoRouter with auth guards, Dio networking, and testing.
- What
- Production Dart and Flutter patterns: null safety, immutable state with Freezed, BLoC and Riverpod, GoRouter with auth guards, Dio networking, and testing.
- Cost
- Free
- Needs
- Use "Dart/Flutter Patterns" with your Muse.
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor: a patterns skill for shipping production Flutter apps without the usual state-management spaghetti. It is organized by concern with copy-paste-ready Dart: null safety done right (avoid the ! operator, prefer ?., ??, and pattern matching), immutable state via sealed classes and Freezed with copyWith, async composition (concurrent Future.wait, safe BuildContext handling after await), widget architecture (extract widgets to classes, never helper methods, propagate const, scope rebuilds), state management with BLoC/Cubit events and Riverpod notifiers plus derived providers, GoRouter navigation with reactive auth guards, Dio networking with interceptors and a one-time token-refresh retry guard, global error capture with ErrorWidget.builder and crash reporting wiring, and testing (BLoC tests, widget tests with ProviderScope overrides, fakes over mocks). By @affaan-m, listed here with credit to its creator. From the affaan-m/ECC repository (MIT). Honest caveats: pure guidance, nothing to install; assumes Dart 3 and a working Flutter project; its state-management opinions center on BLoC and Riverpod, so GetX or MobX shops will get less value. Skill Harbor never reviews the code, review it yourself before use.
Version:
Install
Copy the install package below, then paste it into MuseThe install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Use "Dart/Flutter Patterns" with your Muse. Prerequisites: a Flutter project (Dart 3). Pure guidance skill, nothing to install. 1. Open the skill: https://github.com/affaan-m/ECC/blob/main/skills/dart-flutter-patterns/SKILL.md and copy the full SKILL.md text. 2. Paste it into a chat with Muse and add: "Review this widget for null-safety and rebuild-scope issues against these patterns." 3. For new features: "Build this screen with Riverpod following these patterns, GoRouter navigation included." Tip: name your state-management choice up front (BLoC or Riverpod); the skill covers both and will otherwise ask. Safety: a skill is plain-text instructions; it runs nothing by itself. Never paste secrets into a chat, and review anything Muse proposes before it changes your code.
Saved to your recent installs. Find it anytime on /connect.
Questions
How do I install a build?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.