Bro, I've been searching about changing routes for 3-4 days, but I wasn't understanding anything. Then I watched your video, and not only did it solve my problem, but I also understood it very well.
If someone still facing this issue, pass routerConfig:MyRouter.router instead of other router options router is static in my case, otherwise it should MyRouter().router
How do I implement something like guards concept in a go_router package that some paths can only be accessed by authorized users and other paths can be accessed without permission. I looked for the latest version of the 12.0.1 version document, but I can't see it. Could you give me some advice ?
There is a problem. If I use bloc for theme switching in flutter and using go_router. Then each time of switching theme its going back to initialLocation route. Is there any fix for this?
Hello Dear, Can you please add the one more solution in gorouter If user logged in and click on browser refresh button then it should user keep on current page
Thanks for the lesson, it's really cool, but you forgot to add the routeInformationProvider at the very beginning: MyAppRouter().router.routeInformationProvider, because of this my application crashed
I am using shared preference for isAuth But when I reload the web app it false automatically then true In between it automatically redirect to login page
in you main function just do:- MaterialApp.router( routerConfig: MyAppRouter.returnRouter(), // debugShowCheckedModeBanner: false, // routeInformationProvider: // MyAppRouter.returnRouter().routeInformationProvider, // routeInformationParser: MyAppRouter.returnRouter().routeInformationParser, // routerDelegate: MyAppRouter.returnRouter().routerDelegate, ); just keep routerConfig property, remove rest.
Hi Bro! I hope you are doing Good! I have Doubt That How can We pass a Function as a parameter from one screen to another screen . and please s make a Video with the latest Go router Version 10.0.0 Please respond me bro Its very urgent to me Thank you
Bro I have couple of doubts, I am using it in flutter web If I reload the page state of the app is gone, null value issues occurs, and I have a situation like after otp screen I am navigating to success screen, being in success screen I am still able to go back to OTP screen, this should not happen I have used pushreplacementnamed route to handle it but still it doesn't work can you do a more advanced video with go router bro I am full stuck ever since I started with go router 😢
Bro, I've been searching about changing routes for 3-4 days, but I wasn't understanding anything. Then I watched your video, and not only did it solve my problem, but I also understood it very well.
in the "main.dart" file we should mention routerinformationprovider also. Otherwise it will throw "routerInformation.state = null" error.
Thnx bro it worked!
If someone still facing this issue, pass routerConfig:MyRouter.router instead of other router options
router is static in my case, otherwise it should MyRouter().router
what should i put in it routeInformationProvider: ? . can you give me example
@@datminh4532 just put the code in MaterialApp.router inside
routeInformationProvider:"Your Router Class
".router.routeInformationProvider ,
@@datminh4532 router.routeInformationProvider
wow bro, I become a pro with your beginner tutorial
It is very helpful. your explanations are so clear to understand. Thank you very much
Loved the video! Very crisp and clear :) Worth the subscribe ❤
How do I implement something like guards concept in a go_router package that some paths can only be accessed by authorized users and other paths can be accessed without permission. I looked for the latest version of the 12.0.1 version document, but I can't see it. Could you give me some advice ?
very helpful and explanation is very clear. thank you
You are a great tutor. Thank you!
Hi, very good explanation! hello from Ukraine!
Easy to understand presentation... thanks for your efforts.
thank you for crystal clear explanation....very grateful
Best video on this subject!
Thanks. Very clearly explained.
very clear explanation thanks
great video
This was really good, thanks.
This was helpful, thanks
Hi, Iam using Get for navigation is this a good approach or I should learn go router and use it?
same issue for me
Detailed bloc series. Pleasee
still waiting
Waiting...
combine bloc and go router plss
Recommend best flutter with dart language course for beginners to advanced level
Check my video - Which udemy course i bought for flutter
youtube.com/@thetechbrotherss
love it
Nice video!
How can we use pushAndRemoveUntil on this go router???
Any Idea guys??
Did you found the ans, same doubt for me also😢
There is a problem. If I use bloc for theme switching in flutter and using go_router. Then each time of switching theme its going back to initialLocation route. Is there any fix for this?
I have fixed the problem 😊
@@ShourovRoy-pk5zm can you share the solution please?
@@humayunzaib3297 sure. You can create another instance and pass it in theme
Create multiple pages and import to main.dart is possible sir
Is there any option to use go router without context?
You didn't told about navigatepushremoveuntill , but you are making video title as pro?
😂
If you Click a button, It's Navigate To New Page, But the route not change. you notice that. pls give a solution.
Add GoRouter.optionURLReflectsImperactiveAPIs=true inside the main function above runApp
How to pass data back to previous screen when clicking on back button by using go_router ?
hello ! should you no't add 'final' for : GoRouter router = GoRouter() -> final GoRouter router = GoRouter() ? :D
I have two pages A and B
when i push from go router A to B
and then i pop A from B
How will I know if a pop-up has occurred?
Wrap your scaffold with PopScope widget
Hello Dear,
Can you please add the one more solution in gorouter
If user logged in and click on browser refresh button then it should user keep on current page
Any solution found?
on voit pas les liens de chaque page visités dans la barre de navigation comme avec le package gorouter
Oui je comprends
Thanks for the lesson, it's really cool, but you forgot to add the routeInformationProvider at the very beginning: MyAppRouter().router.routeInformationProvider,
because of this my application crashed
Thanks @user-xx9rp4gp9g i am facing the same issue can you please explain why the app is crashing
Can you do bloc state manegement tutorials
Yes soon!
I am using shared preference for isAuth
But when I reload the web app it false automatically then true
In between it automatically redirect to login page
Use local storage to store the data
Sir how to remove all screens from stack (push named and remove until) in go router
❤ from PAKISTAN
inherited != null
"No GoRouter found in context"
how can we pass ChangeNotifierProvider in gorouter
how to remove all previous route
and come to the location and clear stack
did you solve it ?
@IbraheemElDali no
Bro do on BLoc biginer
okay soon
how to handle defalut back button in web browser
Please make in Hindi in voice
when i click the buttons, its not navigating to the new screen, anyone facing this issue? i cant find any solutions online.
Same problem bro
in you main function just do:-
MaterialApp.router(
routerConfig: MyAppRouter.returnRouter(),
// debugShowCheckedModeBanner: false,
// routeInformationProvider:
// MyAppRouter.returnRouter().routeInformationProvider,
// routeInformationParser: MyAppRouter.returnRouter().routeInformationParser,
// routerDelegate: MyAppRouter.returnRouter().routerDelegate,
);
just keep routerConfig property, remove rest.
Where deep link?
why to use this complex this when its easy to understand simple navigation
When app scales, and more features are added,
Then you need a better way of handling routes which are also compatible with deep linking
Hi Url route name not updated kindly fix the issue
Add GoRouter.optionURLReflectsImperactiveAPIs=true inside the main function above runApp
how can i use getx with this
ican't use get material app
Hi Bro!
I hope you are doing Good!
I have Doubt That How can We pass a Function as a parameter from one screen to another screen . and please s make a Video with the latest Go router Version 10.0.0
Please respond me bro Its very urgent to me
Thank you
Bro I have couple of doubts, I am using it in flutter web If I reload the page state of the app is gone, null value issues occurs, and I have a situation like after otp screen I am navigating to success screen, being in success screen I am still able to go back to OTP screen, this should not happen I have used pushreplacementnamed route to handle it but still it doesn't work can you do a more advanced video with go router bro I am full stuck ever since I started with go router 😢
Use the context.goNamed() instead.