riverpod
Installation
SKILL.md
Flutter Riverpod State Management
Use this skill when building Flutter state management with riverpod and flutter_riverpod.
Core Rule
- Use
Providerfor read-only values and dependency wiring. - Use
StateProviderfor small mutable state. - Use
FutureProviderfor one-shot async loading. - Use
StreamProviderfor reactive streams. - Use
NotifierorAsyncNotifierfor feature state that needs mutation methods. - Use
autoDisposefor short-lived state. - Use
familywhen provider output depends on an argument. - Use
flutter_riverpodin Flutter apps. - If you use
flutter_riverpod, you usually do not addriverpodseparately because the Flutter package brings it in transitively. - Current stable line is Riverpod 3.x (
riverpod3.2.1,flutter_riverpod3.3.1).