Bloc widgets reftech data (rebuild) when navigating to another pageView or any View altogether

Posted by Andre Scott | Updated on

Bloc widgets reftech data (rebuild) when navigating to another pageView or any View altogether. I finally got my head around the problem As it turned out, it was not about the bloc as much it was a problem related to PageView.

I wrapped the PageView with PageStorage widget as follows:

Every page is assigned a PageStorageKey which is used to save and restore values that can outlive the widget


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers