1,621 questions
Tooling
1
vote
5
replies
143
views
I'd like to try new status management in Flutter, what would be good?
Until now, I've only used RiverPod and Provider to do status management. I think they only use the same technology, so I want to proceed with the project using new status management, but I'm agonizing ...
Score of 1
2 answers
155 views
flutter riverpod example not triggering state notification
I'm doing a Udemy course for flutter and for some reason in this riverpod example the state is not being notified. I've tried Claude and it couldn't help and said to ask here. I realise that this ...
Score of 0
1 answer
39 views
I used go router and StatefulShellRoute, and the bottom NavigationBar icon clicks, but the color does not change
Bottom Navigation Bar manages the index with Provider, and the code of Bottom Navigation Bar is written as below.
I have a total of 5 icons and I just click on the second icon, but the color changes ...
Score of 2
1 answer
136 views
Riverpod AsyncNotifier re-fetches API after logout and causes 401
I'm very new to Riverpod and I'm implementing a login/logout flow using AsyncNotifier.
I fetch the user profile after login and show the username on the home screen.
The issue is:
When I logout, the ...
Score of 3
1 answer
453 views
I recently upgraded from Riverpod 2.x to 3.0 and I'm getting a disposal error
Unhandled Exception: Cannot use the Ref of noteControllerProvider after it has been disposed. This typically happens if:
A provider rebuilt, but the previous "build" was still pending and ...
Best practices
0
votes
3
replies
135
views
How to user Riverpod NotifierProvider with Controllers?
I always struggle to hook up Controllers with Riverpod NotifierProvider. For example, TextEditingController, MapController or in this case I need to hook it up with TreeController from the ...
Score of 0
1 answer
111 views
GoRouter redirect to initialLocation after riverpod rebuild
I'm experiencing an issue where my Flutter app redirects users to the home page after a successful 401 token refresh, instead of keeping them on their current route. This happens when using GoRouter ...
Score of 1
1 answer
171 views
Riverpod 3.0.0 migration: Listeners inside widgets that are not visible are now paused
I am trying to migrate to Riverpod 3.0.0. It says that now Listeners inside widgets that are not visible are now paused.
I have the following setup:
Page A: showing some data and an 'edit'-Button and ...
Score of 0
0 answers
122 views
Riverpod StateNotifier works on hot restart, but not on fresh app start
I'm building a Flutter app using Riverpod for state management. I have a SplashScreen that checks for both network connectivity and user authentication status. The SplashScreen should display ...
Score of 0
0 answers
50 views
Can't i change state.value directly and do a re-render below way in flutter riverpod?
I am learning flutter riverpod state management. For example say I have a class extending AsyncNotifier class. The state.value is a class object which may include list of another class as its property....
Score of 0
1 answer
43 views
The Widgets are not rebuilding when the state changes through button click
The Widgets are not rebuilding when the state changes through button click, I am using a button click to update the state from the App Bar, the value is getting changed in state but not reflecting in ...
Score of 0
1 answer
88 views
ref.listen is not showing dialogs
My Ref.listen is not working. It's not showing the dialogs I want it to show. It's not showing Any dialog. I only see the the logs.
Firebase should be initialized
istener should work
Dismissed loading ...
Score of 1
1 answer
86 views
Invoke .read() function in a regular class
Firstly, I have a class with extends StateNotifier<bool> named ButtonStateNotifier:
class ButtonStateNotifier extends StateNotifier<bool> {
ButtonStateNotifier() : super(true);
void ...
Score of 1
0 answers
42 views
How to handle riverpods ProviderContainer() with DI in dart frog?
import 'package:dart_frog/dart_frog.dart';
import 'package:riverpod/riverpod.dart';
Handler middleware(Handler handler) {
return handler
.use(provider<ProviderContainer>((context) =>...
Score of 0
0 answers
104 views
Why does infinite_scroll_pagination + Riverpod custom state management not trigger a new API call on refresh?
I'm building a Flutter app using infinite_scroll_pagination v5.x and Riverpod for state management. I want to implement infinite scroll with a paginated API and also support pull-to-refresh that ...