Flutter GoRouter | Become Pro of Route Navigation in Flutter | Page Navigation in Flutter

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 85

  • @foodxcooking4448
    @foodxcooking4448 3 месяца назад +2

    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.

  • @JeevanKumar-vw5nx
    @JeevanKumar-vw5nx 10 месяцев назад +14

    in the "main.dart" file we should mention routerinformationprovider also. Otherwise it will throw "routerInformation.state = null" error.

    • @AliHamza-lt2xu
      @AliHamza-lt2xu 9 месяцев назад

      Thnx bro it worked!

    • @SamruddhiChaudhari-c4p
      @SamruddhiChaudhari-c4p 7 месяцев назад

      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

    • @datminh4532
      @datminh4532 6 месяцев назад

      what should i put in it routeInformationProvider: ? . can you give me example

    • @foodxcooking4448
      @foodxcooking4448 3 месяца назад

      @@datminh4532 just put the code in MaterialApp.router inside
      routeInformationProvider:"Your Router Class
      ".router.routeInformationProvider ,

    • @zyaadahmarket
      @zyaadahmarket Месяц назад

      @@datminh4532 router.routeInformationProvider

  • @poya.3
    @poya.3 16 дней назад

    wow bro, I become a pro with your beginner tutorial

  • @mihretabnigussie3027
    @mihretabnigussie3027 Год назад +1

    It is very helpful. your explanations are so clear to understand. Thank you very much

  • @dhanushpshetty
    @dhanushpshetty Год назад +1

    Loved the video! Very crisp and clear :) Worth the subscribe ❤

  • @정병귀-z2x
    @정병귀-z2x Год назад +3

    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 ?

  • @rr2r2r2ra
    @rr2r2r2ra Год назад +1

    very helpful and explanation is very clear. thank you

  • @HammadKhanYT
    @HammadKhanYT 11 месяцев назад

    You are a great tutor. Thank you!

  • @itpeople1573
    @itpeople1573 Год назад

    Hi, very good explanation! hello from Ukraine!

  • @lapcell
    @lapcell Год назад

    Easy to understand presentation... thanks for your efforts.

  • @dydx3741
    @dydx3741 Год назад +1

    thank you for crystal clear explanation....very grateful

  • @fabsync
    @fabsync Год назад

    Best video on this subject!

  • @sssthegreat
    @sssthegreat Год назад

    Thanks. Very clearly explained.

  • @saabirmohamed636
    @saabirmohamed636 Год назад

    very clear explanation thanks

  • @asmy8h
    @asmy8h Год назад

    great video

  • @marufhassan634
    @marufhassan634 Год назад

    This was really good, thanks.

  • @Ayan-od8hk
    @Ayan-od8hk Год назад

    This was helpful, thanks

  • @abhibhuje2915
    @abhibhuje2915 Год назад

    Hi, Iam using Get for navigation is this a good approach or I should learn go router and use it?

    • @QUICK882
      @QUICK882 Год назад

      same issue for me

  • @karthikmohan79
    @karthikmohan79 Год назад +6

    Detailed bloc series. Pleasee

  • @mohanmovibrothers3539
    @mohanmovibrothers3539 2 года назад +1

    Recommend best flutter with dart language course for beginners to advanced level

    • @AkshitMadan
      @AkshitMadan  2 года назад

      Check my video - Which udemy course i bought for flutter

    • @mohsinillahibhutto
      @mohsinillahibhutto 2 года назад

      youtube.com/@thetechbrotherss

  • @mikgaming07
    @mikgaming07 5 месяцев назад

    love it

  • @hashankannangara8723
    @hashankannangara8723 2 года назад

    Nice video!

  • @hemantshrestha6738
    @hemantshrestha6738 Год назад +2

    How can we use pushAndRemoveUntil on this go router???
    Any Idea guys??

    • @koki5780
      @koki5780 Год назад

      Did you found the ans, same doubt for me also😢

  • @ShourovRoy-pk5zm
    @ShourovRoy-pk5zm Год назад +2

    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?

    • @ShourovRoy-pk5zm
      @ShourovRoy-pk5zm Год назад +1

      I have fixed the problem 😊

    • @humayunzaib3297
      @humayunzaib3297 11 месяцев назад

      @@ShourovRoy-pk5zm can you share the solution please?

    • @ShourovRoy-pk5zm
      @ShourovRoy-pk5zm 11 месяцев назад

      @@humayunzaib3297 sure. You can create another instance and pass it in theme

  • @jjss6717
    @jjss6717 6 месяцев назад

    Create multiple pages and import to main.dart is possible sir

  • @miracziyaalev1878
    @miracziyaalev1878 Месяц назад

    Is there any option to use go router without context?

  • @koki5780
    @koki5780 Год назад +1

    You didn't told about navigatepushremoveuntill , but you are making video title as pro?

  • @santhoshs9086
    @santhoshs9086 Год назад +1

    If you Click a button, It's Navigate To New Page, But the route not change. you notice that. pls give a solution.

    • @kopipakee9053
      @kopipakee9053 Год назад

      Add GoRouter.optionURLReflectsImperactiveAPIs=true inside the main function above runApp

  • @maheshperi19
    @maheshperi19 9 месяцев назад

    How to pass data back to previous screen when clicking on back button by using go_router ?

  • @poki6041
    @poki6041 9 месяцев назад

    hello ! should you no't add 'final' for : GoRouter router = GoRouter() -> final GoRouter router = GoRouter() ? :D

  • @MohdNadeem-o4b
    @MohdNadeem-o4b 2 месяца назад

    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?

  • @yogitagunjal6664
    @yogitagunjal6664 11 месяцев назад

    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

  • @androrifain
    @androrifain Год назад +1

    on voit pas les liens de chaque page visités dans la barre de navigation comme avec le package gorouter

  • @ВованчоХБКовский
    @ВованчоХБКовский Год назад +2

    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

    • @RohitGupta-ps1tf
      @RohitGupta-ps1tf 7 месяцев назад

      Thanks @user-xx9rp4gp9g i am facing the same issue can you please explain why the app is crashing

  • @jobjosekutty9281
    @jobjosekutty9281 2 года назад +1

    Can you do bloc state manegement tutorials

  • @ajaybadole2026
    @ajaybadole2026 Год назад

    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

  • @3kdevelopers185
    @3kdevelopers185 Год назад

    Sir how to remove all screens from stack (push named and remove until) in go router
    ❤ from PAKISTAN

  • @ejoojoo
    @ejoojoo Год назад +1

    inherited != null
    "No GoRouter found in context"

  • @anantnimbalkar8490
    @anantnimbalkar8490 Год назад

    how can we pass ChangeNotifierProvider in gorouter

  • @surbhipaliwal3576
    @surbhipaliwal3576 Месяц назад

    how to remove all previous route
    and come to the location and clear stack

  • @villagepets3146
    @villagepets3146 2 года назад +2

    Bro do on BLoc biginer

  • @pradeepag3137
    @pradeepag3137 Год назад

    how to handle defalut back button in web browser

  • @SauravKumar-so8wz
    @SauravKumar-so8wz Год назад +1

    Please make in Hindi in voice

  • @billuboy
    @billuboy Год назад

    when i click the buttons, its not navigating to the new screen, anyone facing this issue? i cant find any solutions online.

    • @sidhantdhyani9567
      @sidhantdhyani9567 9 месяцев назад

      Same problem bro

    • @gurparvesh38
      @gurparvesh38 8 месяцев назад

      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.

  • @nurislamrajib2098
    @nurislamrajib2098 9 дней назад

    Where deep link?

  • @obaidkhan3971
    @obaidkhan3971 Год назад

    why to use this complex this when its easy to understand simple navigation

    • @AkshitMadan
      @AkshitMadan  Год назад

      When app scales, and more features are added,
      Then you need a better way of handling routes which are also compatible with deep linking

  • @srinukumarjvv4674
    @srinukumarjvv4674 Год назад

    Hi Url route name not updated kindly fix the issue

    • @kopipakee9053
      @kopipakee9053 Год назад

      Add GoRouter.optionURLReflectsImperactiveAPIs=true inside the main function above runApp

  • @QUICK882
    @QUICK882 Год назад

    how can i use getx with this

    • @QUICK882
      @QUICK882 Год назад

      ican't use get material app

  • @SwarnatejaAchanta
    @SwarnatejaAchanta Год назад

    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

  • @mithun8827
    @mithun8827 Год назад

    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 😢

    • @mustymar
      @mustymar Год назад

      Use the context.goNamed() instead.