Agent skill

dart-flutter-patterns

Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.

mturacgithub.com/mturacGitHub ↗
codexcopilotcursorMIT
Install
npx skills add mturac/everything-openai-codex --skill dart-flutter-patterns --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 15 KB
Bundled scripts: none
Path: skills/dart-flutter-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 84
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Dart/Flutter Patterns ## When to Use Use this skill when: - Starting a new Flutter feature and need idiomatic patterns for state management, navigation, or data access - Reviewing or writing Dart code and need guidance on null safety, sealed types, or async composition - Setting up a new Flutter project and choosing between BLoC, Riverpod, or Provider - Implementing secure HTTP clients, WebView integration, or local storage - Writing tests for Flutter widgets, Cubits, or Riverpod providers - Wiring up GoRouter with authentication guards ## How It Works This skill provides copy-paste-ready Dart/Flutter code patterns organized by concern: 1. **Null safety** — avoid `!`, prefer `?.`/`??`/pattern matching 2. **Immutable state** — sealed classes, `freezed`, `copyWith` 3. **Async composition** — concurrent `Future.wait`, safe `BuildContext` after `await` 4. **Widget architecture** — extract to classes (not methods), `const` propagation, scoped rebuilds 5. **State management** — BLoC/Cubit events, Riverpod notifiers and derived providers 6. **Navigation** — GoRouter with reactive auth guards via `refreshListenable` 7. **Networking** — Dio with interceptors, token refresh with one-time r

What's inside
Steps it walks through
  1. When to Use
  2. How It Works
  3. Examples
  4. 1. Null Safety Fundamentals
  5. Prefer Patterns Over Bang Operator
  6. Avoid late Overuse
  7. 2. Immutable State
  8. Sealed Classes for State Hierarchies
  9. Freezed for Boilerplate-Free Immutability
  10. 3. Async Composition
  11. Structured Concurrency with Future.wait
  12. Stream Patterns
  13. BuildContext After Await
  14. 4. Widget Architecture
More from everything-openai-codex
All skills →
About this skill
What does the dart-flutter-patterns skill do?

Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.

How do I install it?

Run `npx skills add mturac/everything-openai-codex --skill dart-flutter-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going