riverpod
riverpod copied to clipboard
A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
Using a StateNotifierProvider with GoRouter to check if a User is already logged in into Firebase, the redirect feature is not working on flutter_riverpod 2.0.0-dev.9. ```dart class LoginController extends StateNotifier...
**Is your feature request related to a problem? Please describe.** I have an app that has a cli and a gui (flutter) with common code backing them. I did a...
**Describe the bug** 2.0.0-dev.9 An edge case that triggers assertion failure: `````` The following assertion was thrown building Home(dirty, dependencies: [UncontrolledProviderScope], state: _ConsumerState#53d0d): Tried to read AutoDisposeProvider#5dc5b(4) from a place...
For example, ``` final myProvider = FutureProvider((ref) async { final a = ref.watch(aProvider); final b = await fetchNetworkData(a); final c = ref.watch(cProvider); //
**Context As soon as provider is deprecated, riverpod is going to be assumed to be the new "default" state management solution for Flutter. There are other possibilities, e.g. bloc, but...
As discussed in #1568 I think there are use cases to do the following: ```dart counter.when( data: (data) => Text( '$data', style: Theme.of(context).textTheme.headline4, ), error: (error, stackTrace) => const Text('error'),...
**Describe the bug** I'm facing an issue when creating a state notifier with multiple generic types. ``` typedef FetchFunction = Future Function(TParams); @riverpod class Controllers extends _$Controllers { @override ControllerState...
## Related Issues Related to https://github.com/rrousselGit/riverpod/issues/3189 and follow up of https://github.com/rrousselGit/riverpod/pull/3348 ## Checklist Before you create this PR confirm that it meets all requirements listed below by checking the relevant...
Might be a duplicate of https://github.com/rrousselGit/riverpod/issues/3261 **Describe the bug** When using a combination of async providers and a `PopupMenuButton` that uses a `ProviderScope(parent: ProviderScope.containerOf(context))`, there is an error `widget cannot...