Is it ok to return a value from a Cubit state function or is it better to emit a state and use BlocListener? The widget that calls this function ad ...
Is it ok to return a value from a Cubit state function or is it better to emit a state and use BlocListener? The widget that calls this function ad ...
I am new to Flutter and BloC so I wanted to create a project to improve my knowledge about them. Down below you can see the dart files. bnb_cubit.da ...
I am facing this weird issue, where though I have set the state, but the value when accessed in init state is showing null !! user_cubit.dart user ...
I am facing this weird issue, where though I have set the state, but the value when accessed in init state is showing null !! user_cubit.dart user ...
I have a screen that displays a stock value of an asset an asset selection dropdown For now, I put all those values in a singe State class: ...
I have 2 ImageAssets in my flutter project I want to switch between them depending on action, I am using cubit and states. the image changes after goi ...
I am using cubit for state management . And i have a variable in the state. And it gets resetted when some other state is emitted. state_file cubi ...
I am new to flutter and I am using the Cubit from flutter_bloc package. I have this situation going here. I have screen-A as in diagram below where I ...
I am not able to figure out the right architecture of getting this done using firestore streams and flutter_bloc. My goal : I have a logged in user ...
I'm trying to add item to cart so this RangeError Appears to me if anyone know how to solve it, I'll Aprreciate his Effort ...
I have create a cubit using bloc provider in the Chapters screen and in another screen I'm trying to consume the same cubit directly without creating ...
can any one give me the solving for this error. i don't know when the error made and don't know what is the part of code that make this problem this ...
I'm new to flutter, I'm building an app using bloc for state management. I'm trying to toggle theme mode using IconButton on the appBar but the theme ...
I want to simulate a key event press using blocTest for a Cubit function I'm testing. So far it doesn't seem like I can call simulateKeyDownEvent with ...
My problem only happen while im trying to use the app and click on buttons to on screen.. The application does not stop responding when I click on a ...
I use from connectivity_plus for listening to internet connection and handling status with flutter cubit. when i run code on flutter web, status stay ...
I am trying to print and return value outside stream block using async and await but i am not able to print it outside. Please help. Here is the bel ...
The idea is to fetch data from api continuously and show this data in screen, without need to fetch manually, like that if someone else perform a chan ...
I have a screen where there is a list populating items, now I want to add dropdown list above the list, so I am confused on how to implement it. Foll ...
i have a cubit named AuthCubit in which I have multiple functions related to authentication like login,resetPassword,... the thing is all my function ...