Home > database >  Flutter - How to preserve widgets with data and states, when navigating using the NavigationBar clas
Flutter - How to preserve widgets with data and states, when navigating using the NavigationBar clas

Time:10-07

I'm using the NavigationBar class for the navigation through my app, but I have a problem, which is that I can't preserve the information on the screen when I'm navigating, so everything loads up again at the start of the screen. How should I do to preserve the screen even if I am in another screen so everything doesnt load up again?

CodePudding user response:

You can use bloc for your state management.

CodePudding user response:

Use states. There are a lot of options available like for example stateful widgets.

  • Related