#10 || Difference between Go and Push || Flutter Go Router Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back everyone in this video I will discuss what is the difference between go and puss if we want to navigate from one page to another then we have different options like we can call context.go or context.go named similarly we can use context.puss or context dot push named now what is the difference between go and post that person I will discuss today here in the main dot dot you can see in the router configuration for slash this page a will open for the path page B page B will open for the path page C page c will open now in the leaf folder you can see I have created the page a dot dot which contains a elevated button in the center having the text as go to page b means whenever I will click on this button then I should move to the page B and to do that here I have used the method context dot go named and in route names I have called route names.page B now route names is another file which I have created here which contains the variable page a page B page C having the value as page a page B and Page C now let me move to page a once again so the page a contains a button having the text as go to page B whenever I will click here I will move to the page B and to do that here I have called context.go named root names Dot Page B now let me move to page B in the page B it contains a limited button in the center having the text as go go to page C and to achieve that here I have called context dot go named root names dot base C now if I run it please remember that here I have called go named now if I can show you the output then you can see the page a contains a button go to page B if I click here then I am moving to page B which contains a button page C if I click on go to paste C then I am moving to PC and in PC you can see in the center I have taken a text widget having the text as this is PC now if I click on this back then you can see we are directly moving to page a we are not going to page B let me show you once again if I click on go to page B I am moving to page B if I click on go to page C I am going to paste C but if I click on this back then directly I am moving to page a so for navigation if we are using context dot go or context dot go named then it navigates from One path to another without any stacking please remember this now suppose instead of go named here I am using who's named similarly in page b instead of go name I am using post named now let me do a hot restart now let me click on go to page B I am moving to page B if I click on go to page C I am moving to PC now click on this back now you can see I am moving to page B and from page B if I click on this back then I am moving to page a this means for navigation if we are using post or post named then it Stacks one page on another okay that is the difference between go and post thank you so much for watching
Info
Channel: Ripples Code
Views: 3,378
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, go router from scartch, go vs push go router, difference between go vs push in go router with example
Id: 8JyPgvp5mPQ
Channel Id: undefined
Length: 3min 39sec (219 seconds)
Published: Wed Mar 01 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.