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
@riverpodcodegen; avoid legacyStateNotifierProvider. - Split UI state (
NotifierProvider) from async data (FutureProvider/StreamProvider). - Read with
ref.watchinbuild,ref.readin callbacks. - Never call
ref.watchinside a callback.
Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Discussion(0)
Sign in to join the discussion.
No comments yet.