I have a page in Flutter which has 3 different elements header, sidebar and main_content. Sidebar contains some text buttons login, customer, manager etc.
When someone clicks on the button on the sidebar i want to change only the content of the main_content. I dont want to replace whole screen. I just want to replace the content of main_content with another widget.
I am not sure if it can be done using flutter package go_router. Or I have to use state management for this case.
I tried Go_router shell routes. But i think it is made for different purpose.




router config :
main page class :
main content class :
run app :
resault :