dart-flutter-patterns

Provide production-ready Dart and Flutter code patterns for state management, navigation, and networking.

86|21|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Jamkris/everything-gemini-code --skill dart-flutter-patterns-jamkris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-flutter-patterns
Source: https://github.com/Jamkris/everything-gemini-code/tree/main/skills/dart-flutter-patterns
Command: npx skills add https://github.com/Jamkris/everything-gemini-code --skill dart-flutter-patterns-jamkris

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a library of production-ready Dart/Flutter patterns to standardize architecture, reduce boilerplate, and guide teams toward robust, maintainable apps.

Core Features & Use Cases

  • Null safety fundamentals: avoid runtime null errors and leverage pattern matching.
  • Immutable state: sealed classes and freezed data models for predictable state.
  • Async composition & widget architecture: compose asynchronous operations cleanly and structure UI with separate widgets/classes.
  • State management options: guidance for BLoC/Cubit, Riverpod, and Provider usage across apps.
  • Navigation & HTTP networking: GoRouter integration and Dio-based HTTP clients with interceptors.

Quick Start

Create a new Flutter project and start applying these patterns to structure state management, navigation, and data access.

Frequently Asked Questions about dart-flutter-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to structure Flutter state management with BLoC and Riverpod?

Flutter state management patterns for BLoC, Cubit, Riverpod, and Provider standardize architecture across apps. They guide teams toward predictable state using immutable data models and sealed classes to reduce boilerplate and ensure maintainability.

How do I implement GoRouter navigation with Dio networking in a Flutter app?

Implement GoRouter navigation and Dio HTTP networking in a Flutter app using production-ready integration patterns. These patterns configure routing alongside Dio-based HTTP clients equipped with interceptors for clean data access and error handling.

How do I use sealed classes and Freezed for immutable state in Dart null safety?

Use sealed classes and Freezed in Dart null safety to build immutable state models that prevent runtime null errors. This approach leverages pattern matching and predictable state composition for robust asynchronous operations.

Can I use these Dart and Flutter patterns when refactoring an existing app?

Yes, you can apply these Dart and Flutter patterns when refactoring existing apps or starting new features. They standardize widget architecture, dependency injection, and testing patterns in a library-agnostic way to improve maintainability.

What testing patterns should I use for Flutter apps using Provider and Riverpod?

Testing patterns for Flutter apps using Provider and Riverpod focus on validating immutable state and asynchronous composition. These production-ready patterns ensure robust error handling and predictable behavior across different state management solutions.