I am exploring moving our app to the 'go_router' Flutter package to make use of their Navigator 2.0 functionality.
When initialising the GoRouter
with routes
, is it standard practice/expected to declare ALL linked/url views here?
For example, I could declare a Home()
page route at the root of the app. However, if I have a screen which is 10 pages/routes deep ./home/../../../../../../../../deep-page
, would it be standard practice to declare that link and all its parent routes from the get go?
It seems a lot to have so many declerations in the root of the app, so wanted clarity on this is normal/acceptable or if there is a better method.