Is there any ways to pass parameters in riverpods provider

How do I pass a FirebaseAuth user to a StreamProvider in riverpod? When using old provider package, I used to get the user.uid from FirebaseAuth and pass the v...

How to not change the state in widget that shared in two differents Tabs

I'm creating an app and I'm using AutoTabs so I can have different widget tree and be able to move between them without losing state from one tree to another. I...

Flutter riverpod debounce multiple dependent providers

As described in the Riverpod docs, a Riverpod provider can watch other providers to make a processing pipeline. I have something like this: <pre...

Is it possible to pass generic params to Riverpod

I've recently created my own customized widget and its state is handled by using riverpod with a predefined data type now I want to choose the type of data from...

How to call a riverpod provider outside of widget tree/widget class?

I am new to using RiverPod. previously I used Provider for state management. in case of provider I could use a provider outside widget tree to get value using s...

Return a stream from a function

I am using riverpod for state management. <pre><code>class SignInStateNotifier extends StateNotifier&lt;SignInFormStates&gt; { SignInStateNotifier(this._authFaca...

Does autoDispose in riverpod works same as dispose lifecycle in Flutter?

Does autoDispose in Riverpod's StateProvider disposes controllers? Does both the following statements works similarly? <pre><code>final _controller = StateProvider...

Which Riverpod Provider should one use to handle navigation state in combination with Navigator 2.0?

I'm developing a fairly complex cross-platform (Android / iOS / web) app in Flutter. I'm new to Flutter, coming to it from a background of native development for Andro...

Flutter: Stream not retrieving data from sub collection

I am creating my own comment system. I am using firebase to store the comments and then the replies into a subcollection. My code is retrieving the main comments, but...

Riverpode and Hooks in flutter, how to implement the StateNotifier for async calls?

I am new to flutter and recently I decided to look into providers to be able to reuse some sqlite DB calls I have using <a href="https://stackoverflow.com/questions/66...

Riverpod -Mixing AsyncValue with statenotifier failed to update UI

I tried to process user input and update the localvalue in statenotifier which listens and its state is of AsyncValue. The problem is that, updating the value of local...

Flutter-Riverpod - how to combine providers to filter on a Stream

I'm trying to follow the example docs on how to combine Providers using Flutter &amp; Riverpod to filter a list of items. The data is coming from Firestore using Strea...

Flutter/Riverpod: UI not updating on state change within a StateNotifierProvider

The UI of my app is not updating when I know for a fact the state is changing. I am using the <code>watch</code> method from Riverpod to handle this, but the changes d...

Will ProviderScope and riverpod providers be removed from memory?

<strong>I am confused that will <em>Nested ProviderScope</em> and all <em>Providers</em> be romoved from memory? And is following usecase good practice or bad practice...

Future finish succesfully, but data function never executed

Something is wrong with this code, but I can not figure out what is it. The problem is that <code>loading</code> is executed, the Future finishes successfully a...