docs/ja-JP/skills/dart-flutter-patterns/SKILL.md
本番環境対応のDartおよびFlutterパターンは、null安全性、不変状態、非同期構成、ウィジェットアーキテクチャ、人気のある状態管理フレームワーク(BLoC、Riverpod、Provider)、GoRouterナビゲーション、Dioネットワーキング、Freezedコード生成、クリーンアーキテクチャをカバー。
npx skillsauth add ysyecust/everything-claude-code dart-flutter-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
次の場合にこのスキルを使用:
このスキルは、懸念事項で整理されたコピーペーストの準備ができたDart/Flutterコードパターンを提供:
!を避ける、?./??/パターンマッチングを好むfreezed、copyWithFuture.wait、await後の安全なBuildContextconst伝播、スコープ付きリビルドrefreshListenable経由の反応型認証ガード付きGoRouterErrorWidget.builder、crashlyticsワイヤリング// シール状態 — 不可能な状態を防止
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: [...],
);
詳細については、ドキュメントを参照してください。
tools
日本語翻訳:このファイルは production-scheduling 用の日本語翻訳が必要です
testing
日本語翻訳:このファイルは production-audit 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-lens 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-capability 用の日本語翻訳が必要です