python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can i wait the bloc execution in testWidgets
I have the following scenario:
screen button tap -> bloc event -> do a request -> bloc state -> navigate
i want to test that if i tap the button i can navigate..
Future<void> pumpScr...
Paloma Bispo
Votes: 0
Answers: 1
How to keep the old data in same state while emitting the same state with different data and render them separately using different blocBuilders in UI
I have a bloc called specialityBloc which will fetch doctors according to their speciality from firestore by delegating it to a repository.
The problem is when I want to fetch different doctors with d...
BestOFBest
Votes: 0
Answers: 2
Flutter bloc new version deprecated mapEventToState
I have a bloc hierarchy, where in the child bloc's mapEvenToState I used super.mapEventToState. In the newer version of the bloc package, mapEventToState is deprecated.
What should I use instead of su...
Errr
Votes: 0
Answers: 1
Best Practice for shared state between blocs in Flutter
I am new to bloc and I found that whenever I am creating a new page with it's own bloc, I have to create a Loading state and ShowLoading event repeatedly. What is the best practice to avoid this? I ha...
Hoang Thinh
Votes: 0
Answers: 1