affaan-m avatar

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-patterns
On this page
  1. What dart-flutter-patterns covers
  2. dart-flutter-patterns by the numbers
  3. What does the Dart Flutter Patterns skill produce?
  4. What files ship with dart-flutter-patterns?
  5. Which skills are related to dart-flutter-patterns?
  6. What are the Dart Flutter Patterns skill forks?
  7. How does dart-flutter-patterns compare?
  8. Dart Flutter Patterns skill FAQ
  9. 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 installs11,679 (11.7k)skills.sh registry
Repo stars★ 315kGitHub
Repo last updatedDecember 1, 2026GitHub
Repositoryaffaan-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?

SKILL.mdMarkdownGitHub ↗

Dart/Flutterパターン

使用時期

次の場合にこのスキルを使用:

  • 新しいFlutter機能を開始し、状態管理、ナビゲーション、またはデータアクセスのイディオマティックパターンが必要
  • Dartコードのレビューまたは作成とnull安全性、シール型、非同期構成のガイダンスが必要
  • 新しいFlutterプロジェクトをセットアップしBLoC、Riverpod、またはProviderのうち選択
  • 安全なHTTPクライアント、WebView統合、ローカルストレージを実装
  • FlutterウィジェットEt、Cubit、またはRiverpodプロバイダーのテストを作成
  • GoRouterを認証ガードでワイヤリング

動作方法

このスキルは、懸念事項で整理されたコピーペーストの準備ができたDart/Flutterコードパターンを提供:

  1. Null安全性 — !を避ける、?./??/パターンマッチングを好む
  2. 不変状態 — シール型、freezed、copyWith
  3. 非同期構成 — 並行Future.wait、await後の安全なBuildContext
  4. ウィジェットアーキテクチャ — クラスに抽出(メソッドではなく)、const伝播、スコープ付きリビルド
  5. 状態管理 — BLoC/Cubityベント、Riverpodノーティファイアおよび派生プロバイダー
  6. ナビゲーション — refreshListenable経由の反応型認証ガード付きGoRouter
  7. ネットワーキング — インターセプタ付きDio、ワンタイム再試行ガード付きトークンリフレッシュ
  8. エラーハンドリング — グローバルキャプチャ、ErrorWidget.builder、crashlyticsワイヤリング
  9. テスト — ユニット(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.

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.

Listed on Skillselion
Get the embed code
Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.