#3 || Navigation between Routes using Go Router || Flutter Go Router Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back everyone in this video I will discuss how to navigate between routes using the go router package now here you can see there are two routes one for dashboard another one is for profile if I run this project then this is the output you can see for the dashboard page here I have created a button my requirement is that whenever I will hit on this profile button then I should redirect to the profile page similarly the profile page will have a button dashboard and whenever I will click on that button I should move to the dashboard page okay now how to achieve this that portion I will discuss today let me move to dashboard page in the dashboard page you can see that there is a elevated button having the text as profile my requirement is that whenever I will hit on this button then I should move to the profile page and to do that here in the on pressed I will write go router go router dot of context dot go after that the path now to which path I want to move to the profile page so here I need to write slash profile correct similarly for the profile page you can see there is a limited button having the text as dashboard and whenever I will hit on that then I should move to dashboard so here instead of dashboard I will pass slash because for this initial route this dashboard page will open let me save this and if I click on this profile then you can see I have moved to the profile page which has a button dashboard whenever I will hit on dashboard then I am moving to the dashboard page correct now this syntax this syntax is lengthy it has a shortcut way also let me copy let me comment this actually and instead of this what I can do I can write context dot go that's it and here I need to pass slash correct and the same thing I will write here let me comment this instead of this I will write context dot go sorry context dot go and here I need to pass profile let me save this once again and if I click on profile then I am moving to profile if I am clicking on dashboard then I am moving to the dashboard page this is how we can navigate between routes using the go router package don't forget to subscribe my channel thank you so much for watching
Info
Channel: Ripples Code
Views: 5,840
Rating: undefined out of 5
Keywords: flutter go router tutorial, go router complete tutorial, go router tutorial step by step, go router tutorial series, go router by ripples code, navigator 2.0 api flutter, go router tutorial for begineers, go router navigator 2.0, what is go router, latest go router tutorial, go router tutorial guide, advance go router tutorial, go router, navigating betwwen routes using go router, context.go go router, GoRouter.of(context).go go router, navigation between screens in go router
Id: HCn3S7EHOWo
Channel Id: undefined
Length: 2min 57sec (177 seconds)
Published: Sun Dec 11 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.