For questions relating to the "riverpod" package for the Flutter framework.
Questions tagged [riverpod]
1086 questions
-1
votes
1 answer
Riverpod does not maintain state after reload in Flutter Web
I was trying to add pagination to a web app using Riverpod but it seems that doesn't maintain state after reloading the page. Then I tried with the official counter app example, and after increasing the count and reloading the count does reset to…

chessasuke
- 17
- 1
- 6
-2
votes
1 answer
Unable to read Riverpod provider in web app . throgh Error: Expected a value of type 'String', but got one of type 'Null'
I have an app that i want to build for web but when i try to run login function the auth provider throgh a error
"Error: Expected a value of type 'String', but got one of type 'Null'
this happen only in web.
here is my authrepo provider
final…

Ashutosh singh
- 820
- 6
- 17
-2
votes
2 answers
Flutter Firestore _MapStream is not a subtype of Stream
after hours of struggling and browsing i need your help.
I'm on a flutter projet with firestore implemented. I'm on mvvm architecture using riverpod.
My firestore service has this code :
CollectionReference getCollection(String collection) =>
…

Alexandre Savinien
- 187
- 1
- 8
-3
votes
3 answers
The method 'when' can't be unconditionally invoked because the receiver can be 'null'
I'm trying to do authentication using Riverpod StateNotifier and FutureProvider but I'm facing error when using when method facing this error
The method 'when' can't be unconditionally invoked because the receiver can be 'null'.
Try making the call…

Mohammed M
- 101
- 6