Flutter Tutorial - How To Navigate to New Screen and Back | Navigator Push/Pop Routes

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 75

  • @HeyFlutter
    @HeyFlutter  ปีที่แล้ว

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/clone_github_repo_example

  • @_SridhAr_
    @_SridhAr_ 2 หลายเดือนก่อน +1

    Thanks man, straight to point !❤

    • @HeyFlutter
      @HeyFlutter  20 วันที่ผ่านมา

      Thank you ❤️ for the suggestion! We’ll definitely consider it for our future content ideas. 😊

  • @better_notes182
    @better_notes182 8 หลายเดือนก่อน +2

    On point, no time wasted. Great video! ❤

    • @HeyFlutter
      @HeyFlutter  8 หลายเดือนก่อน +1

      Glad to hear that, Thank you @better_notes182! 😊

  • @emirdikyol8213
    @emirdikyol8213 2 ปีที่แล้ว +2

    It's an amazing tutorial. Your narrative style is perfect. Thank you very much. Keep going.

  • @excellencemichel4875
    @excellencemichel4875 3 ปีที่แล้ว +1

    Thank you for all @Johannes

  • @soispasbet6073
    @soispasbet6073 3 ปีที่แล้ว +1

    You help me a lot with your videos ! Thanks !

  • @junaid-sm
    @junaid-sm 2 ปีที่แล้ว

    sirrrr what a way of presenting,,,,,really appreciative great

  • @Sofien_Steve
    @Sofien_Steve ปีที่แล้ว

    simple and clear, thank you :D !

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Glad to hear that, Thank you @sofienbenktib8970! 😊

  • @enverkilic9226
    @enverkilic9226 3 ปีที่แล้ว

    Thanks Johannes, really easy guide to understand such things , thanks for your efforts....

  • @cfcr.8090
    @cfcr.8090 3 ปีที่แล้ว

    Quality Content , Thank you Johannes !

  • @alexsmith9754
    @alexsmith9754 3 ปีที่แล้ว +1

    Great explain easy to understand.
    Thank you for you sharing ❤️

  • @programmerjowo
    @programmerjowo 3 ปีที่แล้ว

    thanks for this very detail tutorial

  • @rei-vh4ud
    @rei-vh4ud 3 ปีที่แล้ว +1

    hi Johannes, thank you for this tutorial! May I know how to preserve states of widget when navigating using this method?

  • @eNONO-ot4zh
    @eNONO-ot4zh 3 ปีที่แล้ว

    nice explication. I understood well this time. thank

  • @whitebracket
    @whitebracket 2 ปีที่แล้ว

    Thank you ! direct to the goal !

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Glad it was helpful, whitebracket! 🙂

  • @Raufle1
    @Raufle1 2 ปีที่แล้ว

    print('Really Short, simple, sweet and smooth Thanks'),

  • @chaitanyapawar5483
    @chaitanyapawar5483 2 ปีที่แล้ว

    Very nicely explained sir 🙂

  • @kamalCode
    @kamalCode 3 ปีที่แล้ว +3

    Sir, please flutter navigation 2.0

  • @akshayr6067
    @akshayr6067 3 ปีที่แล้ว

    Thank you very much 🙏

  • @kgetgamingentertainmenttec8243
    @kgetgamingentertainmenttec8243 2 ปีที่แล้ว +1

    HI i got an error saying the arguement type jsObject cant be assigned to the parameter type BuildContext context has a red line under it in ElevatedButton part of my code

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You Kirubel Berhanu! Follow this link: stackoverflow.com/questions/53406548/error-dart-the-argument-type-context-cant-be-assigned-to-the-parameter-typ
      I hope you will get your answer 🙂

    • @kgetgamingentertainmenttec8243
      @kgetgamingentertainmenttec8243 2 ปีที่แล้ว

      @@HeyFlutter Thank you for the reply i have solved it already

  • @jk-or7hy
    @jk-or7hy 3 ปีที่แล้ว

    Thanks for helpful video.
    How can I go directly into first screen from third screen ? is it possible ? Thanks

  • @AmericanuNarcis
    @AmericanuNarcis 2 ปีที่แล้ว

    Novadays ,i chuckled a bit

  • @shriramsrinivasan6560
    @shriramsrinivasan6560 2 ปีที่แล้ว

    Hi Johannes Mike, Thanks for the wonderful Video, While reading the Navigator.push() documentation, it could see that Navigator.push() returns a Future event, Generally in flutter, we would add "await" keyword when a function call returns a Future Event, Why don't we add any await keyword before any Navigator.push commands ?

  • @hammedmessi9286
    @hammedmessi9286 2 ปีที่แล้ว

    It;s an amazing tutorial

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Hammed Messi! 🙂

  • @Tech1st
    @Tech1st 3 ปีที่แล้ว +1

    We need getX tutorials

  • @alieid6254
    @alieid6254 2 ปีที่แล้ว +1

    Hey man i need your help here , i have been struggling with this, when i use navigator.puah i doesn't show back button on the next page app bar what is the issue , can you help here??

    • @alieid6254
      @alieid6254 2 ปีที่แล้ว

      @@HeyFlutter yes , no leading initialized on the second page i only have the app bar and it has nothing but the title and still no back button

  • @mojtabasaebi6096
    @mojtabasaebi6096 2 ปีที่แล้ว

    i like that thank you alot

  • @amandwivedi7413
    @amandwivedi7413 3 ปีที่แล้ว

    Sir, how can I navigate to same page ? Like selecting menu button

  • @michaelotu9723
    @michaelotu9723 2 ปีที่แล้ว

    Thumbs up man..

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Michael Otu! 🙂

  • @edwardphilipguarin6460
    @edwardphilipguarin6460 2 ปีที่แล้ว

    Hi! sir,, I follow your instructions in Pop,, but I got an error: Error: A non-null value must be returned since the return type 'Future' doesn't allow null. PS: please help me to debug this. Tnx

  • @amirraja7628
    @amirraja7628 3 ปีที่แล้ว

    Sir please 🙏🙏🙏 tell me if I want to pop 3 values back how can I do ? Please sir I'm stuck from last 3 days I have watched all ur videos but not found any solution

  • @TheAmazingPlankton
    @TheAmazingPlankton 3 ปีที่แล้ว +1

    Is this the way to navigate after "Google sign in"/firebase screen to the "Home-screen"? I am a noob, sorry 😔

    • @TheAmazingPlankton
      @TheAmazingPlankton 3 ปีที่แล้ว

      @@HeyFlutter thank you. How can I usw the navigator. Push without a button...? I mean a delayed switch to another screen.

  • @shubhambhamare-t1s
    @shubhambhamare-t1s 28 วันที่ผ่านมา

    What if i had pop back directly from Third screen to First screen ?

    • @HeyFlutter
      @HeyFlutter  20 วันที่ผ่านมา

      "You're welcome! Looking forward to seeing it in the future. 😊"

  • @hamzahawat8092
    @hamzahawat8092 9 หลายเดือนก่อน

    I have an error !_debugLocked is not true when i want to back to the Previous screen
    How can i solve it
    Im sorry but my english is not very good

    • @HeyFlutter
      @HeyFlutter  9 หลายเดือนก่อน

      Thank You @hamzahawat8092! Follow this link: stackoverflow.com/questions/55618717/error-thrown-on-navigator-pop-until-debuglocked-is-not-true
      I hope you will get your answer 🙂

  • @santhoshs9086
    @santhoshs9086 3 ปีที่แล้ว

    put video for how to improve flutter web app scrolling performance.I was run my app in chrome the scroll performance not smooth , i behaviour like sloth. so pls ready these type videos

  • @abdullahsaid8561
    @abdullahsaid8561 2 ปีที่แล้ว

    what happen if my second screen is black. what is the cause

  • @caioandrade998
    @caioandrade998 2 ปีที่แล้ว

    THANKS!!!!!!

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      You are welcome, Caio Andrade!

  • @starynight419
    @starynight419 ปีที่แล้ว

    can you pop multiple data in flutter?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thank You Stary Night! Follow this link: stackoverflow.com/questions/57370739/how-do-i-pass-more-than-one-values-using-navigator-pop-method-in-flutter
      I hope you will get your answer 🙂

  • @messiisthebest
    @messiisthebest 2 ปีที่แล้ว

    but in my case , without pressing a button , I am navigating to 2nd screen although I push navigation on onpressed function

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you MESSI, make sure to follow the tutorial step by step 🙂

  • @shakeelakthar3429
    @shakeelakthar3429 2 ปีที่แล้ว

    When i click device back button from third screen, its going to first screen, but it has to go to second screen. what should I do?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Shakeel Akthar! Follow this link: stackoverflow.com/questions/55265782/android-back-button-keep-bring-me-back-to-first-screen-when-its-pressed-and-didn
      I hope you will get your answer 🙂

  • @canpietaybek
    @canpietaybek 2 ปีที่แล้ว

    Alles sehr gut gemacht bruder! mach weiter, vielleicht versuch doch mal auch ein deutsches video?? DANKE

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thanks for the idea, Can Piet! 🙂 I have added it to my list of ideas for future videos!

    • @canpietaybek
      @canpietaybek 2 ปีที่แล้ว +1

      @@HeyFlutter thx alot

  • @wonabe9799
    @wonabe9799 2 ปีที่แล้ว

    When I click on the back button of the navigation bar it pop's previous page how to stop that

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You wona be!! Follow this link: stackoverflow.com/questions/45916658/how-to-deactivate-or-override-the-android-back-button-in-flutter
      I hope you will get your answer 🙂

    • @wonabe9799
      @wonabe9799 2 ปีที่แล้ว

      @@HeyFlutter thanks for your help sir

  • @Akhi.yt45
    @Akhi.yt45 2 ปีที่แล้ว

    Thank you so much sir love you 👏❤️‍🔥❤️‍🔥

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      You are welcome, Akhilesh Rao!

  • @muhammadafzal237
    @muhammadafzal237 2 ปีที่แล้ว

    Nice

  • @abdullahsaid8561
    @abdullahsaid8561 2 ปีที่แล้ว

    i got a lot of errors from just copying what u did

  • @moehamdan1001
    @moehamdan1001 3 ปีที่แล้ว

    Any tutorials for camera filters and masks faces like Snapchat

  • @simpleengineering2766
    @simpleengineering2766 3 ปีที่แล้ว +1

    flutter sikhai

  • @mdshahidali3132
    @mdshahidali3132 3 ปีที่แล้ว

    Nice Video , But Without Animation No Any App Like Much Better For User Experience So When You Create A Next Any Topic Video Please Use Professional Animation Who Not Use AnyOne in Video Please Sir .
    Thanking You .

  • @hashankannangara8723
    @hashankannangara8723 3 ปีที่แล้ว

    😎😍🤘

  • @padalaharshitagoud3621
    @padalaharshitagoud3621 2 ปีที่แล้ว

    onTap: () {
    print("Edit Profile");
    Navigator.push(
    context,
    MaterialPageRoute(
    builder: (context) => Second page()));
    ->This is my first page
    TextButton(
    onPressed: () => {
    Navigator.pop(context,'Continue'),
    Navigator.push(context, MaterialPageRoute(builder: (context) => FirstPage())),
    },
    ->This is my second page
    when I click on back button of first page it's showing Second page again.
    Can you help me with this?