Flutter Routes & Navigation - Parameters, Named Routes, onGenerateRoute

  Рет қаралды 203,430

Reso Coder

Reso Coder

Күн бұрын

Пікірлер: 176
@donaldparkerii
@donaldparkerii 5 жыл бұрын
another great tutorial, you've not only done a great job teaching but also at production standards coding, THANK YOU SO MUCH
@ResoCoder
@ResoCoder 5 жыл бұрын
Thank YOU for watching!
@docdsmc6639
@docdsmc6639 5 жыл бұрын
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!
@Juliapak
@Juliapak 2 жыл бұрын
I'm having that issue right now!!
@DevGamer19
@DevGamer19 5 жыл бұрын
This is indeed the best tutorial for Flutter Routing. Clean code and very good explanation. Thank you!
@golfgolf7161
@golfgolf7161 Жыл бұрын
The best video about navigation on youtube! Can you explain when use push, pushReplacement, pushAndRemoveUntil? GL
@officialismailshah
@officialismailshah 3 жыл бұрын
Man!!!!! You are blessing for flutter developers.... You are playing big rule in flutter community... Keep doing great stuff....
@coding_den
@coding_den 3 жыл бұрын
Probably the best explanation of basic routing in Flutter that I've seen 🙌🏼
@bm2ilabs
@bm2ilabs 4 жыл бұрын
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
@WESLEYNFSMW
@WESLEYNFSMW 3 жыл бұрын
Thanks bro, another sub from Brazil 😁
@johnkaicher2073
@johnkaicher2073 3 жыл бұрын
Thanks... best explanation of onGenerate and Flutter routing on You Tube
@myrtasz1036
@myrtasz1036 4 жыл бұрын
Thanks, one of the best programming tutorials I've ever seen
@mdmarcaassport
@mdmarcaassport 4 жыл бұрын
What a voice men.
@monadmantis7472
@monadmantis7472 4 жыл бұрын
your tutorials are awesome. I have liked this video and subscribed. you are a giant among men!
@tadaspetra
@tadaspetra 5 жыл бұрын
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
@ramioooz
@ramioooz 5 жыл бұрын
Simple, nice and straightforward. great video pro 👍
@mdmarcaassport
@mdmarcaassport 4 жыл бұрын
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
@allanjuan1149
@allanjuan1149 5 жыл бұрын
Great tutorial. Clear, informative and straight to the point. Thanks a lot for sharing
@akshaychopra96
@akshaychopra96 3 жыл бұрын
You are the best! Thanks for making flutter for complex apps so easy :)
@liorpolak1391
@liorpolak1391 3 жыл бұрын
Outstanding tutorial!
@AdriSinaga
@AdriSinaga 5 жыл бұрын
Wow, your explaination so clear. Thank you
@pravinromano8774
@pravinromano8774 3 жыл бұрын
thank you for the wonderful tutorial on page routes and navigation sir, thank you
@fakejimhalpert
@fakejimhalpert 4 жыл бұрын
Thank you very much, your tutorial is very great. It will help me a lot for my school project! :)
@AVACLOUDADDA
@AVACLOUDADDA 4 жыл бұрын
Great tutorial. It clears my all doubt. Thanks
@mihirmodi1936
@mihirmodi1936 3 жыл бұрын
Excellent explanation. Loved it. Thanks.
@a.d7627
@a.d7627 3 жыл бұрын
Great tutorial! thanks for opening my routes horizons :)
@shivkumar7496
@shivkumar7496 4 жыл бұрын
Thanks a lot...u explained so well, u saved my time by explaining routing clearly.
@mateenmehmood5675
@mateenmehmood5675 2 жыл бұрын
Awesome Content. Incredible
@FilledStacks
@FilledStacks 5 жыл бұрын
Very helpful tutorial. Thanks for the video.
@Vellutia
@Vellutia 5 жыл бұрын
Oh no.. I miss this tutorial, my project is already like half done :'(
@aravind.a
@aravind.a 4 жыл бұрын
Really awesome tutorial on flutter navigation 👍🎉🔥
@zaytoons
@zaytoons 5 жыл бұрын
Thank you so much! Exactly what I was looking for. Keep up the good work! 👍🏻
@bluecodes5881
@bluecodes5881 4 жыл бұрын
Thanks for such an awesome tutorial!
@johncerpa3782
@johncerpa3782 4 жыл бұрын
Great video, man. Thank you so much
@murtazavohra360
@murtazavohra360 4 жыл бұрын
This is exactly the video I needed Thanks!!
@iced87
@iced87 4 жыл бұрын
so, I applied what you did in this video and it works flawlessly; however, I am currently facing an issue with using popUntil
@shivampokhriyal_
@shivampokhriyal_ 4 жыл бұрын
Great tut on Routes :D
@RossiMurilo
@RossiMurilo 5 жыл бұрын
Pretty clear! Thanks a lot!
@ivan.arenas
@ivan.arenas 4 жыл бұрын
muchas gracias !! !! ! !! !! !! !!! saludos desde colombia
@danielduvana
@danielduvana 4 жыл бұрын
This was a perfect tutorial! Thanks!
@AhtramTube
@AhtramTube 4 жыл бұрын
Great tutorial! Thank you!
@brunopereira9905
@brunopereira9905 5 жыл бұрын
Very nice tutorial man! Helped me a looot.
@ResoCoder
@ResoCoder 5 жыл бұрын
I'm glad it did!
@thothtrismegistus929
@thothtrismegistus929 5 жыл бұрын
what about fluro package?
@aytunch
@aytunch 5 жыл бұрын
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?
@dimitristotsios2292
@dimitristotsios2292 5 жыл бұрын
flutter.dev/docs/cookbook/navigation/returning-data#nope-button see the answers here as a start point.
@Makayasa
@Makayasa 5 жыл бұрын
Well prepared tutorial, love your teching method
@kennyho6222
@kennyho6222 2 жыл бұрын
This is great. thank you!
@Hkp-z9x
@Hkp-z9x 5 жыл бұрын
Awesome tutorial. You explained it so well.
@shashanksm6327
@shashanksm6327 3 жыл бұрын
Great videos , keep up the good work :)
@csgokul
@csgokul 4 жыл бұрын
Just wow .... Thanks for this awesome tut ...
@the_one_named_harris
@the_one_named_harris 5 жыл бұрын
Very helpful video! Thanks a lot!
@Adam-xr6fj
@Adam-xr6fj 4 жыл бұрын
How can this technique be used with BottomNavigationBar?
@dewas6237
@dewas6237 5 жыл бұрын
your channel so help me a lot thanks bro!
@brianmartindunn
@brianmartindunn 4 жыл бұрын
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.
@Iamnooralibutt
@Iamnooralibutt 4 жыл бұрын
Map or make a class of arguments
@BartWentink
@BartWentink 4 жыл бұрын
@@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?
@syedmuheeb2409
@syedmuheeb2409 4 жыл бұрын
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!
@chrisp267
@chrisp267 5 жыл бұрын
Great stuff! Thanks!
@MubashirAR
@MubashirAR 3 жыл бұрын
For anyone using flutter for web, replace final args = settings.arguments; with final name = settings.name; and switch(args) with switch (name)
@BillyMahmood
@BillyMahmood 5 жыл бұрын
Great tutorial, please can you show us how to add route guards?
@jmbartho1
@jmbartho1 5 жыл бұрын
Great video thanks!
@riyoua
@riyoua 5 жыл бұрын
Great Tutorial ... thanks a lot
@free_intertaining
@free_intertaining 2 жыл бұрын
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?
3 жыл бұрын
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.
@BURN-ADDiCT
@BURN-ADDiCT 3 жыл бұрын
Guard clause
@aguninghamidou9969
@aguninghamidou9969 4 жыл бұрын
very good tutorial
@fixocsolutions2695
@fixocsolutions2695 4 жыл бұрын
thanks bro helped a lot
@Ishaahmed1687
@Ishaahmed1687 3 жыл бұрын
great tutorial.. Thanks...........
@sephyshen2510
@sephyshen2510 5 жыл бұрын
very helpful video. thank you RC.
@abdechahidihya5360
@abdechahidihya5360 4 жыл бұрын
I love you man.
@vfthome-yt
@vfthome-yt Жыл бұрын
Thank you!
@rasan97
@rasan97 2 жыл бұрын
Thank you, kind sir.
@thamastersmooth
@thamastersmooth 3 жыл бұрын
what if I want to return a list on the second page by button?
@bgizzanm
@bgizzanm 2 жыл бұрын
but, how implement .pushNamed in the attribute onTap from ListTile?
@MrLefteris3000
@MrLefteris3000 2 жыл бұрын
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!!!
@Luca-re3ve
@Luca-re3ve 3 жыл бұрын
very good tutorial, how should i proceed if i have first page and second in 2 different files?
@adnankazi9572
@adnankazi9572 5 жыл бұрын
Perfect video just wanted to know how to i use Navigator.popUntil(context,pageRoute) using this method i am getting error
@MrProgrammer101
@MrProgrammer101 2 жыл бұрын
You can't
@chiragsolanki8864
@chiragsolanki8864 3 жыл бұрын
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.
@FranciscoJunior29
@FranciscoJunior29 5 жыл бұрын
Great! Thank you!
@mahmudulhasanfarhan156
@mahmudulhasanfarhan156 2 жыл бұрын
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?
@eron.amorim
@eron.amorim 4 жыл бұрын
Great tutorial! Just one question... If my add do have 3 or more pages, it'll be '/second/third' or just '/third' ??
@marielxenovia3062
@marielxenovia3062 4 жыл бұрын
Just /third.
@imransefat8770
@imransefat8770 3 жыл бұрын
what about multiple types of arguments?
@ThomazMartinez
@ThomazMartinez Жыл бұрын
After 4 years is this still best?
@WorstDeveloper
@WorstDeveloper 5 жыл бұрын
This was really helpful. I will implement it in my application. Is this way still the recommended approach?
@holaahora7527
@holaahora7527 3 жыл бұрын
And how can I do to pass multiple data? Or even a custom class that I created? Thanks!
@sanathnherath
@sanathnherath 5 жыл бұрын
very helpful, thanks
@ricksondpenha
@ricksondpenha 4 жыл бұрын
Hi can you make a video on navigator 2.0...
@s34n2
@s34n2 5 жыл бұрын
At 7:34, is "(_) => SecondPage()" the same as just putting "SecondPage()"?
@britannio
@britannio 5 жыл бұрын
No. it's actually an abbreviation for (BuildContext context) => SecondPage() which allows you to use the context to create the page e.g. by using ModalRoute.of(context).settings.arguments
@SarinM
@SarinM 3 жыл бұрын
How to pass multiple named parameters through this kind of routing?
@341414
@341414 5 жыл бұрын
Thank you for this beautiful video training. What'ss about onUnknownRoute?
@rammehar5531
@rammehar5531 3 жыл бұрын
Hi, please make a video on Navigator 2.0 with real world example! It will be highly appreciated
@lindermannla
@lindermannla 5 жыл бұрын
Greate tutorial! Thnxz!
@realsk8ilsh
@realsk8ilsh 4 жыл бұрын
Is it possible to pass multiple arguments on Second Page ... ?
@davidagyakwa288
@davidagyakwa288 4 жыл бұрын
does this mean i can use pop and popUnitl routes
@learnwithkhubbaib
@learnwithkhubbaib 4 жыл бұрын
how we can pass multiple data, like i want to send matchId.seriesId for same route
@Blackday2010
@Blackday2010 5 жыл бұрын
In the code of (RouteGenerator) when define final args= settings.arguments I found that it doesn't have arguments but has only (name, isIntializable), what is wrong?
@Magarovv
@Magarovv 4 жыл бұрын
What is your extension of theme? please... I thinked so beautiful
@mohamedelyamani7845
@mohamedelyamani7845 4 жыл бұрын
I put splash screen In init route on main.dart, problem is when I press on back button in any other page it goes to splash screen instead of exit the app Second thing how can I handle routs with bottom navigation bar If I am navigating to other page navbar disappears cause I put it in home page I spent all day trying to figure it out but I can't
@abdimussa8932
@abdimussa8932 3 жыл бұрын
Did you figure out the answer for the splash screen problem?
@FranzSchwanauer
@FranzSchwanauer 5 жыл бұрын
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.
@bennguyen1313
@bennguyen1313 4 жыл бұрын
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?
@KittehBit
@KittehBit 5 жыл бұрын
Love the tutorial and also your font and color scheme for VSCode! Could you share what font and color thing that is? :3
@Malaq4822
@Malaq4822 2 жыл бұрын
u found it?
@kiliandanckaerts702
@kiliandanckaerts702 9 ай бұрын
the font is Fira Code
@bioscopetales
@bioscopetales 2 жыл бұрын
Thanks buddy
@kubecon
@kubecon 4 жыл бұрын
I like your VS Code theme and font. Mind sharing it. 😊
@kiliandanckaerts702
@kiliandanckaerts702 9 ай бұрын
the font is Fira Code
@ecarlosbc
@ecarlosbc 3 жыл бұрын
Worked perfect for me, but i had to cast the variable args to pass values to the screen: final args = settings.arguments as Map;
@hakeemsalimriz7488
@hakeemsalimriz7488 5 жыл бұрын
Great Tutorial but i have a small challenge, what if i want to change the content inside the scaffold only so that my appbar and bottom nav can remain the same? how can i go about it?
@samuelrajasingh506
@samuelrajasingh506 4 жыл бұрын
pass the context of that widget you need to change
@AzeUnkn0wn
@AzeUnkn0wn 4 жыл бұрын
how do you pass data from multiple variables?
@slimefunoriginal
@slimefunoriginal 3 жыл бұрын
sir, is it working on web?
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Flutter Tutorial for Beginners #23 - Maps & Routing
12:39
Net Ninja
Рет қаралды 276 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 582 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 102 М.
Flutter Navigation - Routes in Flutter
44:53
Johan Jurrius
Рет қаралды 11 М.
10x Your Speed With Flutter
8:04
Flutter Mapp
Рет қаралды 86 М.
Flutter Bottom Navigation with Nested Routing (Auto Route)
46:06
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 850 М.
Flutter BLoC Pattern Tutorial From Scratch
20:51
Reso Coder
Рет қаралды 350 М.
Top 35 Flutter Widgets
29:29
Flutter Mapp
Рет қаралды 335 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.