In Flutter, how to use post method if the BLOC provider of current page didn’t have any create class
When using BLOC Provider, we need to call the BLOC class along with the service that need to be loaded when the new page is being called. In that same BLOC listerner we can use POST method and listern to the responce.
BlocListener doesn’t listen – Flutter
I’m building a simple signup process with Firebase Auth and Bloc. When the user creates an account it triggers an event of the SignUpBloc called SignUpRequired. On that event, an account on Firebase is created and emits the state SignUpSuccess (and there are also SignUpProcess and SingUpError). I’m using a simple bloc observer to verify every step. It works totally fine, however, the BlocListener doesn’t listen to any change of the bloc state.
BlocListener doesn’t listen – Flutter
I’m building a simple signup process with Firebase Auth and Bloc. When the user creates an account it triggers an event of the SignUpBloc called SignUpRequired. On that event, an account on Firebase is created and emits the state SignUpSuccess (and there are also SignUpProcess and SingUpError). I’m using a simple bloc observer to verify every step. It works totally fine, however, the BlocListener doesn’t listen to any change of the bloc state.
Bloc not triggering [builder] when emit the same state with different attributes, using equatable and props
// reports_bloc.dart
Is it bad practice to have a cubit listen to a StreamController?
We have a data repository in the backend which is hooked up to a realtime supabase table. Everytime there are certain changes we are listening for, the data repository is notifying our Cubit of the changes:
How to pass state from one page to another in flutter using BloC
I am new to Flutter and the BloC pattern. I am trying to create a simple counter application that has a Tab layout, in which pressing increment
and decrement
buttons will update the counter accordingly which will be displayed on tab 2.
flutter bloc – infinite scrolling – Listview scroll to top when new data added to state
I am trying to implement an infinite scroll list view, My data loads to liveView but everytime new data comes, listview scrolls to top, I want to avoid scroll to top when new data comes in
Flutter, cubit, How to notify local instances of many of the same object, cubit state, that they disappeared from view and then reappeared?
I`m using Widget
Could not find the correct Provider in PopScope In Bloc
I am using Bloc in my app, I want to call certain Functions inside a cubit when the back button is pressed.
Could not find the correct Provider above this Builder Widget
class ProfileView extends StatelessWidget { const ProfileView({super.key}); @override Widget build(BuildContext context) { return BlocProvider( create: (_) => ProfileCubit( context.read<AuthenticationRepository>(), context.read<RemoteRepository>(), sessionCubit: context.read<SessionCubit>(), ), child: const ProfileViewContent(), ); } } class ProfileViewContent extends StatefulWidget { const ProfileViewContent({super.key}); @override State<ProfileViewContent> createState() => _ProfileViewContentState(); } class _ProfileViewContentState extends State<ProfileViewContent> with TickerProviderStateMixin { @override Widget build(BuildContext context) { return […]