I am working on an app in which a stateful widget is used, now for this page i go to navigation drawer and after navigation drawer i move to another page , at another page i have select an option and go back to navigation drawer and when i close the navigation drawer then the previous stateful widget is not updating the item which i have selected on the second page , so please give some solution that how can we update the state when we close any navigation drawer in the flutter app.
Hello @harsh_maheshwari !
There are two types of State Managements:
- Ephermal - Within a single widget
- App State - Throughout the Application
Your use-case requires you to implement App State Management and the flutter dev documentation gives some great explanation and options for this. Check it out here: Differentiate between ephemeral state and app state | Flutter