Affan Minhas
Mar 25, 2024

--

I am using this structure what you explain and it's pretty good on maintaining states efficiently. Sometimes I might face scenario where the same bloc builder is using on multiple screens. Let's say there are screens Screen A and Screen B. You navigate to screen B where bloc builder using and the state is in loading but while loading using press back and the screen A was also using the same bloc builder and it will show loading state. How will you manage this behavior? I have an idea about the dispose state of widget where I can make default once user navigate back. But how do you see about this behavior?

--

--