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

Sdílet
Vložit
  • čas přidán 1. 12. 2022
  • Follow me on Social Media -
    Instagram- akshitmadan...
    LinkedIn- / akshit-madan-394a82a6
    Code - github.com/akmadan/go_router_...
    Mic I use - amzn.to/3yqeKPB
    Laptop MacBook M1 - amzn.to/3Vg3LCj
    🔴Solidity Hindi Complete Playlist - • Playlist
    🔴All Flutter Projects - • Playlist
    🔴All Python Videos - • Python Projects
    🔴Data Science Videos - • Kaggle Datasets Analysis
    #gorouter #flutter #navigation #flutterdeveloper #appdeveloper #coding #pagenavigation #appdevelopment #pagetransitions
    Ignore these tags -
    Akshit Madan
    Akshit Madan Flutter
    Flutter
    Flutter GoRouter
    go_router
    Flutter Navigations
    Page Navigations in Flutter

Komentáře • 72

  • @JeevanKumar-vw5nx
    @JeevanKumar-vw5nx Před 6 měsíci +13

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

    • @AliHamza-lt2xu
      @AliHamza-lt2xu Před 5 měsíci

      Thnx bro it worked!

    • @user-nx4fd3um7r
      @user-nx4fd3um7r Před 3 měsíci

      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 Před 2 měsíci

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

  • @mihretabnigussie3027
    @mihretabnigussie3027 Před rokem +1

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

  • @dhanushpshetty
    @dhanushpshetty Před 8 měsíci +1

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

  • @lapcell
    @lapcell Před rokem

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

  • @rr2r2r2ra
    @rr2r2r2ra Před rokem +1

    very helpful and explanation is very clear. thank you

  • @HammadKhanYT
    @HammadKhanYT Před 7 měsíci

    You are a great tutor. Thank you!

  • @fabsync
    @fabsync Před rokem

    Best video on this subject!

  • @sssthegreat
    @sssthegreat Před 11 měsíci

    Thanks. Very clearly explained.

  • @marufhassan634
    @marufhassan634 Před rokem

    This was really good, thanks.

  • @saabirmohamed636
    @saabirmohamed636 Před rokem

    very clear explanation thanks

  • @user-dy8wm3hu9d
    @user-dy8wm3hu9d Před 9 měsíci +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 ?

  • @dydx3741
    @dydx3741 Před rokem +1

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

  • @Ayan-od8hk
    @Ayan-od8hk Před rokem

    This was helpful, thanks

  • @itpeople1573
    @itpeople1573 Před 11 měsíci

    Hi, very good explanation! hello from Ukraine!

  • @hashankannangara8723
    @hashankannangara8723 Před rokem

    Nice video!

  • @asmy8h
    @asmy8h Před 10 měsíci

    great video

  • @karthikmohan79
    @karthikmohan79 Před rokem +6

    Detailed bloc series. Pleasee

  • @mikgaming07
    @mikgaming07 Před 28 dny

    love it

  • @yogitagunjal6664
    @yogitagunjal6664 Před 7 měsíci

    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

  • @jjss6717
    @jjss6717 Před 2 měsíci

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

  • @ShourovRoy-pk5zm
    @ShourovRoy-pk5zm Před 11 měsíci +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 Před 8 měsíci +1

      I have fixed the problem 😊

    • @humayunzaib3297
      @humayunzaib3297 Před 7 měsíci

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

    • @ShourovRoy-pk5zm
      @ShourovRoy-pk5zm Před 7 měsíci

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

  • @3kdevelopers185
    @3kdevelopers185 Před rokem

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

  • @mohanmovibrothers3539
    @mohanmovibrothers3539 Před rokem +1

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

  • @abhibhuje2915
    @abhibhuje2915 Před 9 měsíci

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

    • @QUICK882
      @QUICK882 Před 9 měsíci

      same issue for me

  • @hemantshrestha6738
    @hemantshrestha6738 Před rokem +2

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

    • @koki5780
      @koki5780 Před 9 měsíci

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

  • @jobjosekutty9281
    @jobjosekutty9281 Před rokem +1

    Can you do bloc state manegement tutorials

  • @poki6041
    @poki6041 Před 5 měsíci

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

  • @ajaybadole2026
    @ajaybadole2026 Před rokem

    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

  • @villagepets3146
    @villagepets3146 Před rokem +2

    Bro do on BLoc biginer

  • @androrifain
    @androrifain Před rokem +1

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

  • @santhoshs9086
    @santhoshs9086 Před rokem +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 Před 10 měsíci

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

  • @ejoojoo
    @ejoojoo Před rokem +1

    inherited != null
    "No GoRouter found in context"

  • @maheshperi19
    @maheshperi19 Před 5 měsíci

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

  • @SauravKumar-so8wz
    @SauravKumar-so8wz Před rokem +1

    Please make in Hindi in voice

  • @anantnimbalkar8490
    @anantnimbalkar8490 Před 11 měsíci

    how can we pass ChangeNotifierProvider in gorouter

  • @koki5780
    @koki5780 Před 9 měsíci +1

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

  • @pradeepag3137
    @pradeepag3137 Před 10 měsíci

    how to handle defalut back button in web browser

  • @billuboy
    @billuboy Před 9 měsíci

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

    • @sidhantdhyani9567
      @sidhantdhyani9567 Před 5 měsíci

      Same problem bro

    • @gurparvesh38
      @gurparvesh38 Před 4 měsíci

      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.

  • @srinukumarjvv4674
    @srinukumarjvv4674 Před rokem

    Hi Url route name not updated kindly fix the issue

    • @kopipakee9053
      @kopipakee9053 Před 10 měsíci

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

  • @obaidkhan3971
    @obaidkhan3971 Před rokem

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

    • @AkshitMadan
      @AkshitMadan  Před rokem

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

  • @QUICK882
    @QUICK882 Před 10 měsíci

    how can i use getx with this

    • @QUICK882
      @QUICK882 Před 10 měsíci

      ican't use get material app

  • @user-il4gz5ki5c
    @user-il4gz5ki5c Před 11 měsíci

    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 Před rokem

    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 Před 11 měsíci

      Use the context.goNamed() instead.

  • @user-xx9rp4gp9g
    @user-xx9rp4gp9g Před rokem +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 Před 3 měsíci

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