Awesome work! This is exactly what I needed to see. I was having a heck of a time trying to pass dynamic arguments to my pages for the past 2 days. This video not only showed me how to do it, it showed me why my previous efforts failed. Well done!
I think it would be important to mention that you would need to create a new "arguments" Object for every class that you want to pass multiple parameters to
As usual the first source to see if you are stuck in anything about flutter, i would really like to see all this knowledge in one big product it will be amazing , Thank you for everything
Very good tutorial. In order to be excellent it may explain if the routes approach works on top of push/pop approach. E. G. /index to /second to /index is push and push or push and pop
If I wanted to pass multiple named parameters, is there a way to do that? It sounds like all the parameters would need to get packed into a Map and sent in the "arguments" parameter. It would be nice if the calling widget ("First Page" in your example) could see the list of parameters expected by the second widget ("Second Page" in your example). Is there a trick or technique that can achieve this? BTW, great tutorial! Please keep making them.
Hi Matej, Thanks for bringing this subject up. It cleared a lot of confusions for us:) One request. Can you make a followup video on how we would pass data back when popping the page or multiple nested pages? And How would we manage a nested Page tree situation where we can go from a->b->c or a->c directly and from c->b->a or c->a directly. Should we do a scenario like this using bloc?
great tutorial! one thing though: the error page example is a little artificial, if an argument is of a wrong type, you rather want an early error as it is a bug, the error page would mask this. also a class with a singe static function is still just a function, it doesn’t really matter where you put it.
Nice Explanation Brother, One Small question by using this approach how we can get data back from next screen. e.g If I want to get some data in first screen while user come back from next screen.
Can u show this in future builder which returns list view builder binder with json data when one list tile is tapped it should return the details page of that particular parent item!
Awesome tutorial. But I have one question, If I want to access the second page by typing the URL on the browser (not by clicking on the Button), how to write the route name and pass the arguments?
Hello, Great tutorial!!! I am using the first method you explained in your video, the problem is I want to pass a List of names, how would i do that? thanks in advance!!!
what about web? suppose i have login and home page i want to check if the user hasn't been logged in show them login page other wise show home page, so every time when i refresh the page it goes to initialRoute no matter what happened before. what should i do?
Thank you for your flutter tutorials. They are helpful. How do you implement popUntil to get to HOME no matter how many routes are on the navigation stack. Please respond with example code.
Total rookie here.. what does the (_) mean? For example you used it in the line: "secondPage' : (_) => SecondPage (data: 'abc', )" and "return MaterialPageRoute (builder: (_) => FirstPage() ); " Would any basic Dart book help with this kind of stuff? Also, in the MyApp class' build, are the "initialRoute" and "onGenerateRoute" members always available, even if you don't use routes? For example, I don't see how 'initalRoute' gets passed to onGenerateRoute.. does it act like a global variable? Would the use of Routes/RouteGenerator be an alternative to BlocBuilder / StreamBuilder, or are they commonly used together?
another great tutorial, you've not only done a great job teaching but also at production standards coding, THANK YOU SO MUCH
Thank YOU for watching!
Man!!!!! You are blessing for flutter developers.... You are playing big rule in flutter community... Keep doing great stuff....
Awesome work! This is exactly what I needed to see. I was having a heck of a time trying to pass dynamic arguments to my pages for the past 2 days. This video not only showed me how to do it, it showed me why my previous efforts failed. Well done!
I'm having that issue right now!!
This is indeed the best tutorial for Flutter Routing. Clean code and very good explanation. Thank you!
Probably the best explanation of basic routing in Flutter that I've seen 🙌🏼
I think it would be important to mention that you would need to create a new "arguments" Object for every class that you want to pass multiple parameters to
What a voice men.
As usual the first source to see if you are stuck in anything about flutter, i would really like to see all this knowledge in one big product it will be amazing , Thank you for everything
Thanks, one of the best programming tutorials I've ever seen
Very good tutorial. In order to be excellent it may explain if the routes approach works on top of push/pop approach. E. G. /index to /second to /index is push and push or push and pop
Thanks... best explanation of onGenerate and Flutter routing on You Tube
Thanks bro, another sub from Brazil 😁
The best video about navigation on youtube! Can you explain when use push, pushReplacement, pushAndRemoveUntil? GL
Simple, nice and straightforward. great video pro 👍
For anyone using flutter for web,
replace
final args = settings.arguments;
with
final name = settings.name;
and
switch(args)
with
switch (name)
so, I applied what you did in this video and it works flawlessly; however, I am currently facing an issue with using popUntil
Wow, your explaination so clear. Thank you
Oh no.. I miss this tutorial, my project is already like half done :'(
You are the best! Thanks for making flutter for complex apps so easy :)
your tutorials are awesome. I have liked this video and subscribed. you are a giant among men!
Outstanding tutorial!
Great tutorial. Clear, informative and straight to the point. Thanks a lot for sharing
If I wanted to pass multiple named parameters, is there a way to do that? It sounds like all the parameters would need to get packed into a Map and sent in the "arguments" parameter. It would be nice if the calling widget ("First Page" in your example) could see the list of parameters expected by the second widget ("Second Page" in your example). Is there a trick or technique that can achieve this?
BTW, great tutorial! Please keep making them.
Map or make a class of arguments
@@Iamnooralibutt I'm trying to pass a map, but I get an error that I can't use arguments of type in place of int. How would I rectify this?
muchas gracias !! !! ! !! !! !! !!! saludos desde colombia
Great tutorial. It clears my all doubt.
Thanks
Hi Matej, Thanks for bringing this subject up. It cleared a lot of confusions for us:) One request. Can you make a followup video on how we would pass data back when popping the page or multiple nested pages? And How would we manage a nested Page tree situation where we can go from a->b->c or a->c directly and from c->b->a or c->a directly. Should we do a scenario like this using bloc?
flutter.dev/docs/cookbook/navigation/returning-data#nope-button see the answers here as a start point.
Very helpful tutorial. Thanks for the video.
Excellent explanation. Loved it. Thanks.
great tutorial! one thing though: the error page example is a little artificial, if an argument is of a wrong type, you rather want an early error as it is a bug, the error page would mask this. also a class with a singe static function is still just a function, it doesn’t really matter where you put it.
Guard clause
thank you for the wonderful tutorial on page routes and navigation sir, thank you
Awesome Content. Incredible
Great tutorial! thanks for opening my routes horizons :)
This is great. thank you!
Thanks a lot...u explained so well, u saved my time by explaining routing clearly.
How can this technique be used with BottomNavigationBar?
Great tut on Routes :D
Thank you very much, your tutorial is very great. It will help me a lot for my school project! :)
Really awesome tutorial on flutter navigation 👍🎉🔥
Thanks for such an awesome tutorial!
Just wow .... Thanks for this awesome tut ...
Great video, man. Thank you so much
very good tutorial
Great tutorial! Thank you!
This is exactly the video I needed Thanks!!
Pretty clear! Thanks a lot!
thanks bro helped a lot
Thank you!
This was a perfect tutorial! Thanks!
great tutorial.. Thanks...........
Well prepared tutorial, love your teching method
Thank you, kind sir.
Thank you so much! Exactly what I was looking for. Keep up the good work! 👍🏻
I love you man.
Awesome tutorial. You explained it so well.
Very helpful video! Thanks a lot!
After 4 years is this still best?
Nice Explanation Brother,
One Small question by using this approach how we can get data back from next screen.
e.g If I want to get some data in first screen while user come back from next screen.
Great tutorial, please can you show us how to add route guards?
Can u show this in future builder which returns list view builder binder with json data when one list tile is tapped it should return the details page of that particular parent item!
Awesome tutorial. But I have one question, If I want to access the second page by typing the URL on the browser (not by clicking on the Button), how to write the route name and pass the arguments?
Hello, Great tutorial!!!
I am using the first method you explained in your video, the problem is I want to pass a List of names, how would i do that? thanks in advance!!!
Great tutorial! Just one question... If my add do have 3 or more pages, it'll be '/second/third' or just '/third' ??
Just /third.
Very nice tutorial man! Helped me a looot.
I'm glad it did!
what about fluro package?
Great Tutorial ... thanks a lot
Great video thanks!
your channel so help me a lot thanks bro!
This was really helpful. I will implement it in my application. Is this way still the recommended approach?
Great stuff! Thanks!
very good tutorial, how should i proceed if i have first page and second in 2 different files?
Great videos , keep up the good work :)
Thanks buddy
Great! Thank you!
what about multiple types of arguments?
very helpful video. thank you RC.
Hi can you make a video on navigator 2.0...
Perfect video just wanted to know how to i use Navigator.popUntil(context,pageRoute) using this method i am getting error
You can't
What is your extension of theme? please... I thinked so beautiful
what about web? suppose i have login and home page i want to check if the user hasn't been logged in show them login page other wise show home page, so every time when i refresh the page it goes to initialRoute no matter what happened before. what should i do?
And how can I do to pass multiple data? Or even a custom class that I created? Thanks!
Easiest to understand routing
very helpful, thanks
thanks!
but, how implement .pushNamed in the attribute onTap from ListTile?
Is it possible to pass multiple arguments on Second Page ... ?
Thanks
what if I want to return a list on the second page by button?
Thank you for your flutter tutorials. They are helpful.
How do you implement popUntil to get to HOME no matter how many routes are on the navigation stack.
Please respond with example code.
Thank you for this beautiful video training. What'ss about onUnknownRoute?
Cool
does this mean i can use pop and popUnitl routes
Worked perfect for me, but i had to cast the variable args to pass values to the screen: final args = settings.arguments as Map;
how we can pass multiple data, like i want to send matchId.seriesId for same route
Greate tutorial! Thnxz!
how do you pass data from multiple variables?
Hi, please make a video on Navigator 2.0 with real world example! It will be highly appreciated
thank you!
sir, is it working on web?
Total rookie here.. what does the (_) mean? For example you used it in the line: "secondPage' : (_) => SecondPage (data: 'abc', )" and "return MaterialPageRoute (builder: (_) => FirstPage() ); " Would any basic Dart book help with this kind of stuff?
Also, in the MyApp class' build, are the "initialRoute" and "onGenerateRoute" members always available, even if you don't use routes? For example, I don't see how 'initalRoute' gets passed to onGenerateRoute.. does it act like a global variable?
Would the use of Routes/RouteGenerator be an alternative to BlocBuilder / StreamBuilder, or are they commonly used together?
Awesome thanks
Very nice