flutter-riverpod-state-management

Generate typed, reactive state management for Flutter apps with Riverpod 3.0.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/pitabwire/skills --skill flutter-riverpod-state-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-riverpod-state-management
Source: https://github.com/pitabwire/skills/tree/main/flutter-riverpod-state-management
Command: npx skills add https://github.com/pitabwire/skills --skill flutter-riverpod-state-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reactive, type-safe, and scalable state management for Flutter apps using Riverpod 3.0 with code generation.

Core Features & Use Cases

  • Generator-first approach using @riverpod annotations to define providers, states, and business logic.
  • Immutability with Freezed models and a unified Notifier/AsyncNotifier pattern for consistent state handling.
  • Strong architectural guidance (Data → Domain → Presentation) with clear linting and testing recommendations.
  • Practical guidance on ref.watch, ref.read, ref.listen, and safe ref.mounted usage to avoid stale updates.
  • Dependency-injection integration and end-to-end patterns for robust Flutter applications.

Quick Start

Create a Flutter project and add Riverpod annotations to scaffold a typed, immutable state flow.

Frequently Asked Questions about flutter-riverpod-state-management

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

FAQPage Schema
How do I manage Flutter state with Riverpod 3.0 code generation?

You can manage Flutter state with Riverpod 3.0 code generation by using @riverpod annotations to define providers, states, and business logic. This approach ensures type-safe, reactive state handling with immutable Freezed models.

What is the best way to structure a scalable Flutter app using Riverpod?

The best way to structure a scalable Flutter app using Riverpod is applying a clean 3-layer architecture: Data, Domain, and Presentation. This pattern separates concerns and provides predictable state and dependency injection across features.

When should I use ref.watch vs ref.read in Flutter Riverpod?

Use ref.watch in Flutter Riverpod to reactively rebuild UI when state changes, and ref.read to access state inside event handlers. Safe ref.mounted usage prevents stale updates during asynchronous operations.

Does Riverpod state management work with Freezed for immutability?

Riverpod state management works with Freezed to enforce immutability across your Flutter application. This combination provides a unified Notifier and AsyncNotifier pattern for consistent, type-safe state handling.

Why does my Flutter Riverpod provider cause stale state updates?

Flutter Riverpod providers cause stale state updates when asynchronous operations complete after the widget is unmounted. Applying safe ref.mounted checks and proper ref.listen usage prevents these stale update issues.