I want to use common scaffold widget between multiple screens with go_router navigation library.
I don’t understand the approach.
I saw some examples for common scaffold with multiple screens but they are using some index based scaffold body content widget. I want some solution where i can use go_router navigation(push/pop/go) instead of any indexed based scaffold body widget replacement.
Note: I don’t have any tab based or bottom navigation in my design. I want to navigate based on buttons or selection containing in scaffold body widget only.
Someone can suggest me the approach that can help me.
Also interested in to know which navigation lib is best like standard and more power full (go_router vs GetX).
Thanks and waiting for some response.
Looking for approach.
2
Answers
If sticking with go_router, check out using a ShellRoute. For example:
You can use ShellRoute. For example: