Issue Sorry for my english I’m French. I develop in Flutter (dart) and I experience a strange behavior in my code using Cubit (Bloc) when I want to redirect to a page after a form submission (with "Reactive forms" package,
Continue readingTag: cubit
How to integrate data retrieved from an API via Timer.periodic into Flutter Cubit project
Issue I am working on a Flutter Bloc/Cubit based application in which I will need to have a Timer.periodic running that will retrieve data from an API at a certain repeating duration and then update the UI if new data
Continue readingUpdate a widget from another one with Cubit Bloc
Issue I have two widgets on a screen a Loading Widget and a button widget I want to change the state of the loading widget every time I tap on the button. loading widget class LoadingWidget extends StatelessWidget { const
Continue readingProper use of cubit
Issue I am still learning how to use cubit and bloc, and I am trying to use a cubit in my project, but I got a little bit confuse about how to use it. There is a screen that requires
Continue readingFlutter – cubit – changing boolean value inside cubit
Issue I would like to change bool values from the cubit, but I can’t figure out how to do it. What I want to achieve is, for instance: if (boolean value stored in cubit is true) "show widget A" :
Continue readingFlutter: How can use RadioListTile with flutter cubit?
Issue I am not able to make RadioListTile works. It isn’t selected and unselected on click Can you help me? Here is me code edit … final ownedController =TextEditingController(); … RadioListTile< String>( value:’not owned’, groupValue:ownedController.text, toggleable:true, title: const Text(‘Owned’), onChanged:(String)
Continue readingUsing PageView with Bloc to programmatically 'swipe' pages. Prevent the bloc builder from building on certain states?
Issue I’ve built a PageView and want to control page swiping programmatically using a Bloc. I’m using a PageController and listening for my bloc’s ShowPage state. Then calling pageController.animateTo to animate the PageView to the desired page. The bloc builder
Continue readingHow to add multiple state in one cubit in flutter bloc pattern?
Issue I was developing an application in flutter which does OTP based authentication to log in. Earlier I was managing the states in the class itself so that I can use the setState method to render the UI accordingly. Then
Continue readingFlutter Cubit: good way to get stored variable?
Issue I’m using Flutter and Cubit for the first time, and I would like to know if this is a good way to retrieve a stored variable, in my cas the current loggued user. After loggued in, the user can
Continue readingBlocListener not being executed after Cubit function call
Issue So, I have a cubit with a function that POSTs some data. I have three states, DataLoading, DataError and DataLoaded for my cubit. When the user taps on a button, I call the function in the cubit. After that,
Continue reading