Dart Flutter Patterns Skill
- Installs
- 11.7k
- Repo stars
- 315k
- Repo updated
- Dec 1, 2026
TL;DR
dart-flutter-patterns is a Claude Code skill that provides copy-paste Dart and Flutter patterns for null safety, state management, GoRouter, and clean architecture for developers building production mobile apps with BLoC
Install if
Flutter developers implementing features with BLoC, Riverpod, or Provider who need GoRouter, Dio, Freezed, and null-safe Dart patterns.
Skip if
Native iOS SwiftUI or Android Jetpack Compose projects without Dart or Flutter dependencies.
npx skills add https://github.com/affaan-m/ECC --skill dart-flutter-patternsTry it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#dart-flutter-patterns (Dart Flutter Patterns) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#dart-flutter-patterns (Dart Flutter Patterns) and follow it.On this page
- What dart-flutter-patterns covers
- dart-flutter-patterns by the numbers
- What does the Dart Flutter Patterns skill produce?
- What files ship with dart-flutter-patterns?
- Which skills are related to dart-flutter-patterns?
- What are the Dart Flutter Patterns skill forks?
- How does dart-flutter-patterns compare?
- Dart Flutter Patterns skill FAQ
- More in this repo
What dart-flutter-patterns covers
- 7 core pattern categories including null safety, immutable state, async composition, widget architecture, state manageme
- Covers BLoC, Riverpod, Provider, GoRouter with auth guards, Dio clients, Freezed code generation
- Includes secure HTTP patterns, WebView integration, local storage and widget testing guidance
- Delivers idiomatic Dart with sealed classes, pattern matching and const propagation
- Next-skill handoff to implementation after pattern selection
dart-flutter-patterns by the numbers
| All-time installs | 11,679 (11.7k) | skills.sh registry |
|---|---|---|
| Repo stars | ★ 315k | GitHub |
| Repo last updated | December 1, 2026 | GitHub |
| Repository | affaan-m/ECC ↗ | |
Data as of Dec 3, 2026 (Skillselion catalog sync)
- Covers three state management frameworks: BLoC, Riverpod, and Provider
What does the Dart Flutter Patterns skill produce?
Copy-paste Flutter modules with state management, GoRouter routes, Dio clients, and Freezed immutable models
- State management modules
- GoRouter route configuration
- Dio and Freezed data layer code
What files ship with dart-flutter-patterns?
Dart/Flutterパターン
使用時期
次の場合にこのスキルを使用:
- 新しいFlutter機能を開始し、状態管理、ナビゲーション、またはデータアクセスのイディオマティックパターンが必要
- Dartコードのレビューまたは作成とnull安全性、シール型、非同期構成のガイダンスが必要
- 新しいFlutterプロジェクトをセットアップしBLoC、Riverpod、またはProviderのうち選択
- 安全なHTTPクライアント、WebView統合、ローカルストレージを実装
- FlutterウィジェットEt、Cubit、またはRiverpodプロバイダーのテストを作成
- GoRouterを認証ガードでワイヤリング
動作方法
このスキルは、懸念事項で整理されたコピーペーストの準備ができたDart/Flutterコードパターンを提供:
- Null安全性 —
!を避ける、?./??/パターンマッチングを好む - 不変状態 — シール型、
freezed、copyWith - 非同期構成 — 並行
Future.wait、await後の安全なBuildContext - ウィジェットアーキテクチャ — クラスに抽出(メソッドではなく)、
const伝播、スコープ付きリビルド - 状態管理 — BLoC/Cubityベント、Riverpodノーティファイアおよび派生プロバイダー
- ナビゲーション —
refreshListenable経由の反応型認証ガード付きGoRouter - ネットワーキング — インターセプタ付きDio、ワンタイム再試行ガード付きトークンリフレッシュ
- エラーハンドリング — グローバルキャプチャ、
ErrorWidget.builder、crashlyticsワイヤリング - テスト — ユニット(BLoC test)、ウィジェット(ProviderScopeオーバーライド)、モック上のフェイク
例
// シール状態 — 不可能な状態を防止
sealed class AsyncState<T> {}
final class Loading<T> extends AsyncState<T> {}
final class Success<T> extends AsyncState<T> { final T data; const Success(this.data); }
final class Failure<T> extends AsyncState<T> { final Object error; const Failure(this.error); }
// 反応型認証リダイレクト付きGoRouter
final router = GoRouter(
refreshListenable: GoRouterRefreshStream(authCubit.stream),
redirect: (context, state) {
final authed = context.read<AuthCubit>().state is AuthAuthenticated;
if (!authed && !state.matchedLocation.startsWith('/login')) return '/login';
return null;
},
routes: [...],
);詳細については、ドキュメントを参照してください。
Which skills are related to dart-flutter-patterns?
What are the Dart Flutter Patterns skill forks?
Dart Flutter Patterns has 1 known copy in the catalog totaling 4.6k installs. They canonicalize to this original listing.
- affaan-m - 4.6k installs
How does dart-flutter-patterns compare?
Use dart-flutter-patterns over generic mobile skills when the stack is Flutter with GoRouter, Dio, and Freezed rather than cross-framework abstractions.
Dart Flutter Patterns skill FAQ
Who is the Dart Flutter Patterns skill for?
Flutter developers implementing features with BLoC, Riverpod, or Provider who need GoRouter, Dio, Freezed, and null-safe Dart patterns. Skip if: Native iOS SwiftUI or Android Jetpack Compose projects without Dart or Flutter dependencies.
When should I use dart-flutter-patterns?
The user builds Flutter features, picks BLoC vs Riverpod vs Provider, wires GoRouter auth guards, or writes Dio and Freezed data layers.
Which state libraries does dart-flutter-patterns cover?
dart-flutter-patterns documents idiomatic patterns for BLoC, Riverpod, and Provider, plus Cubit and Riverpod provider testing. It also covers GoRouter navigation with auth guards, Dio networking, Freezed immutable models, and null-safe Dart conventions.
What Flutter concerns are included?
dart-flutter-patterns spans null safety, immutable state with freezed and copyWith, async composition, widget architecture, HTTP with Dio, WebView integration, local storage, and clean architecture layouts with copy-paste-ready code for production Flutter apps.
Add a dart-flutter-patterns badge
Show developers this skill is listed on Skillselion. Paste this into your README.