SKILL Instructions

Flutter Riverpod State Management

Manage state with Riverpod 2.x

claude
cursor
chatgpt
#flutter
#dart
#riverpod
#state

About

How to structure providers, notifiers, and async data using Riverpod.

Metadata (SKILL.md frontmatter)

name
flutter-riverpod-state
version
2.0.0

Instructions

Riverpod

  • Use @riverpod codegen; avoid legacy StateNotifierProvider.
  • Split UI state (NotifierProvider) from async data (FutureProvider/StreamProvider).
  • Read with ref.watch in build, ref.read in callbacks.
  • Never call ref.watch inside a callback.