dart-flutter-patterns

Implement Dart and Flutter patterns for null safety and state management.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/thangvawn/agent_financial --skill dart-flutter-patterns-thangvawn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-flutter-patterns
Source: https://github.com/thangvawn/agent_financial/tree/main/.cursor/skills/dart-flutter-patterns
Command: npx skills add https://github.com/thangvawn/agent_financial --skill dart-flutter-patterns-thangvawn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires freezed, riverpod, bloc, growable, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill equips Flutter developers with ready-to-use patterns, streamlining state management, navigation, and code organization to reduce bugs and increase productivity.

Core Features & Use Cases

  • Pattern Library: Provides idiomatic solutions for null safety, immutable state, async composition, widget architecture, state management, and navigation.
  • Framework Coverage: Supports the most popular frameworks including BLoC, Riverpod, Provider, and GoRouter.
  • Use Case: A new Flutter project requires efficient state management. This Skill provides examples and guidance for selecting and implementing the most suitable framework for the project.

Quick Start

Apply the Provider state management pattern to your next Flutter project for a structured approach to managing application state.

Frequently Asked Questions about dart-flutter-patterns

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

FAQPage Schema
How do I implement immutable state and null safety in Flutter?

To implement immutable state and null safety in Flutter, use idiomatic patterns combining freezed and state management frameworks like BLoC or Riverpod to ensure predictable state mutations and reduce bugs.

What is the best way to choose between BLoC, Riverpod, and Provider for state management?

Choosing between BLoC, Riverpod, and Provider for state management depends on your project's complexity, with this guidance offering framework coverage and examples to help select the most suitable structure for your app.

How do I structure Flutter widget architecture and navigation?

Structure Flutter widget architecture and navigation using battle-tested patterns for async composition and GoRouter, streamlining code organization to increase productivity and reduce bugs in your project.

Does this Flutter patterns guidance support GoRouter for navigation?

Yes, this Flutter patterns guidance supports GoRouter for navigation, providing comprehensive coverage alongside popular state management solutions like BLoC, Riverpod, and Provider to establish best practices.

When should I use freezed for Dart and Flutter patterns?

Use freezed for Dart and Flutter patterns when you need to establish best practices for immutable state and null safety, streamlining your code organization and reducing bugs in complex applications.