Flutter. Bloc. Why is the event not being sent?
I want an event to be sent to the bloc when the page loads. The problem is that the event is not sent to the bloc. What could be the problem? I've done this many times with no problems. I…
I want an event to be sent to the bloc when the page loads. The problem is that the event is not sent to the bloc. What could be the problem? I've done this many times with no problems. I…
I am stuck in a weird situation. Have cross-checked all the reference. Problem is my timer is not updating the modelBottomSheet. This is my WorkOutTracker class WorkOutTracker extends StatefulWidget { const WorkOutTracker({Key? key}) : super(key: key); @override State<WorkOutTracker> createState() =>…
I'm trying on Flutter to get the BlocProvider (BloC pattern) of one of my Pageview item. Each item is a Stateless Widget and have his own instance of a Bloc of the same class (BlocA). Each item create his own…
I am migrating to GetX to Bloc, in GetController we don't need BuildContext to call controller, so is there any way to Provide the Context to the bloc class from BlocProvider and we get bloc without providing buildContext like for…
hello i want to ask what's better to structured bloc, in my case i have screen to show all jobs, favorite the job and the other screen can create job. Should i create only one bloc or separate bloc for…
I'm implementing BLOC in my project. I have been used it quite a lot in my other projects. The code works in my other project but not on my new project. This is my code: Widget _buildEvents() { return BlocProvider<EventBloc>(…
**Hi, I am using a cubit for user sign up and when the register button is clicked once it works fine. If there is error and user is not routed to home page and I click the button again nothing…
could I ask for assistance for this problem? My CombosBloc does not receive the CategoryChangedEvent. It was created in main with lazy: false and I am calling the event like this: context.read().add(CategoryChangedEvent(newCategory: widget.task!['category'])); This is inside an initState of a…
I am new to bloc and flutter bloc. In my project, apart from other screens I have also 3 screens for user registration. On the second screen I have a countdown timer implemented in bloc. When the user goes to…
I am trying to learn BLoC without learning any other State Management libraries like GetX, Riverpod, Provider, etc., Learning BLoC is confusing, I don't know how BLoC runs in an App. What should I do? like first try to learn…