In Short: How to make a common widget between routes that doesn't refresh on route change?
In Long: Is there any way I could create a Flutter Container which covers the entire web page except the Navigation Bar and refreshes widgets inside the container according to button clicks on Navigation Bar?
What App Layout I want:
Material App
|
--Navigation Bar
| |
| -- Button 1 (Current User Screen)
| -- Button 2
| -- Button 3
|
-- Container (Current User Screen: Associated With Button 1)
|
-- A List Of Widgets Associated with Button 1
-- A List Of Widgets Associated with Button 2
-- A List Of Widgets Associated with Button 3
What I've Already Tried:
- Create a Navigation Bar With 4 Buttons.
- Create routes and initial route set to 1st button content.
Disadvantages Of What I've Tried:
- I have to put NavigationBar() On Each Route.
- Upon Changing Route, The Refresh Of NavigationRoute() takes place.
On Click Of Another Button From Navigation: It refresh's the Navigation bar too. I want bar to be common widget between routes hence route change should only affect the content change in the container of root Material App.