Loading...
Loading...
Comprehensive guide for Riverpod v3 development in Flutter, focusing on code generation, modular architecture, and modern state management patterns. Use this skill when: (1) Creating new providers or notifiers, (2) Refactoring existing state management code, (3) Setting up testing for Riverpod, or (4) Structuring new features using Riverpod.
npx skill4agent add wahyubucil/agents riverpod-best-practices@riverpod@riverpodriverpod_generatorProvider((ref) => ...)autoDisposelib/modules/[feature]/providers/lib/modules/[feature]/screens/RefRefWidgetRefRefswitch
class MyNotifier extends _$MyNotifier { ... }
Future<Data> myData(Ref ref) async { ... }@Riverpod(keepAlive: true)autoDisposebuild()ref.mountedawaitif (ref.mounted) state = AsyncData(data);ConsumerWidgetStatelessWidgetConsumerStatefulWidgetinitStatedisposeref.watchbuild()ref.readonPressedref.readbuild()snake_caseuser_controller.dartPascalCaseUserControllercamelCaseuserControllerProviderUnmountedRefExceptionkeepAliveref.selectStateNotifierProviderChangeNotifierProvider@riverpodmyProvidermyProvider.notifier