The first process was to get the number of pages we wanted users to be able to route to and then assign unique URLs to them. For example, to go to the Service Page, you need the unique URL “
https://provider.gininow.com/#/services”. After creating these URLs, I added the GoRouter widget at the top level of the app and defined all the URLs and the pages they were supposed to navigate to.So now, when I input a specific URL into the address bar or refresh which restarts the app, the Router checks to see if the URL is defined and navigates to that particular page. If the URL is undefined, it shows a page I have created “404 NOT FOUND” to tell the user that the page doesn’t exist in the app. I can also redirect users to another specific page when they click on a button with the package since it allows me to programmatically change the URL in the address bar.