Issue I am having a problem with my project. The problem is that I have when I push and go to another page and I run a BlocProvider to run a bloc function in that page, the BlocListener in the
Continue readingTag: bloc
Information on Flutter Bloc pattern to reuse the state and event classes
Issue I am using flutter_bloc package for state management and extends with Equatable. I have made Event class and state class for the data to display which I receive from api. It is the simple app where I am receiving
Continue readinghow to access to emit state in the cubit
Issue i have a cubit that emit a cart modal, everything works find but when I fetch the emited state from the cubit I can not, so what I am looking for is to access to emited data from the
Continue readingBloc builder cannot detect the cubit provided
Issue I’m creating a page named Products Page, and it has this structure : @override Widget build(BuildContext context) { return Scaffold( body: _buildBody(), ); } Widget _buildBody() { return Padding( padding: const EdgeInsets.only(top: 60, left: 20, right: 20), child: Column(
Continue readingFlutter BLoC et workmanager : how to make unique repositories initialisation pattern?
Issue I use the BLoC, and workmanager libraries. Actually, the code runs fine. But, looks like smell code. My problem : I have to initialise all my repositories for the MultiRepositoryProvider which wraps my MainApp() widget. At this point, basic
Continue readingBloc State not reload or updating widget ui when i was emit a list
Issue i try to change listSelctedTest with add/remove function in bloc, but my ui widget not reload/update after emit a listSelectedTest. but, if using ctr+s/hot reload it will change to new value and reload my ui widget.old value = 2
Continue readingBloc not rebuilding after succesful state change?
Issue my bloc consumer is receiving the data from my state but is not rebuilding my widget at all for some reason, i also tried changing the color of my text but that didnt work either. class _NameText extends StatelessWidget
Continue readingBloc UI not changing when an object in list is updated
Issue I have a Todo model. For this I have a working version and not working version of the code snippets. I am trying to understand why the code doesn’t work in the non working version where I try to
Continue readingFlutter bloc how to orchestra among blocs in more clean way
Issue I have several blocs to check some app status, like connectivity, battery, etc. And I would like to have a integrated bloc to keep track of each blocs status, ie. a summary bloc that will orchestra the status returned
Continue readingBLoC builder doesn't rerender UI
Issue I would like to get todos from API, set them to state and show them on screen. On initState method I am starting request. After recieving it in my BLoC, I set it in state. But todos don’t visible
Continue reading