Flutter - Passing data to the next page

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ส.ค. 2024
  • In this video I cover passing data to the next page using the material page route.
    This video covers:
    - Construct a text field on the first page
    - Pass the text from the field to the next page
    - Use a text controller to get the fields value
    - Use a material page route to pass the data
    Source code used:
    gist.github.com/branflake2267...
  • แนวปฏิบัติและการใช้ชีวิต

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

  •  5 ปีที่แล้ว

    Thanks for this one. I had found no clear way to pass data to Stateful Widgets until this video. Keep up!

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

    Thank you very much for this fantastic video. Among hundreds of tuturials for doing the job, only this one could solve my problem. Appreciate

  • @frankity
    @frankity 6 ปีที่แล้ว

    you're a genius thank you su much, i was dealing with my second view in another file ".dart" and never mind i can do this, thank you so much

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

    wish I'd found this sooner. Thank you so much.

  • @codecreed.521
    @codecreed.521 4 ปีที่แล้ว

    ohhhh thanks, sir, I have been looking this for a while now.

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

    Your teaching videos are excellent! Hope you can create more latest version of dart language tutorials.

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

    Helpful!! Thank you for this video

  • @streamerx4501
    @streamerx4501 4 ปีที่แล้ว +1

    I am stuck here for more than 4 hrs ! Thank you ver much :)

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

      I feel your pain, it feelt so Good, when it finally worked!

  • @hoanhoang882
    @hoanhoang882 5 ปีที่แล้ว

    thank you, so much video is useful for beginner as me.

  • @madameMABO
    @madameMABO 4 ปีที่แล้ว

    Tks brother, it really saved me.

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

    Thank you!

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

    thank you very much sir, its very useful sir

  • @coolprashantmailbox
    @coolprashantmailbox 6 ปีที่แล้ว +1

    I m appreciating your work..thanks for video series..please upload more video about key and global key..

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Thank you and thanks for the feedback. Great idea and I've added that to my queue.

  • @mohammedsadiq1567
    @mohammedsadiq1567 5 ปีที่แล้ว

    Thank you

  • @nikhil-ch8jy
    @nikhil-ch8jy 4 ปีที่แล้ว +1

    Thank you ,very resourceful

  • @modmindlab1988
    @modmindlab1988 4 ปีที่แล้ว +1

    Great tutorial, thanks :)

  • @rikyriky966
    @rikyriky966 5 ปีที่แล้ว

    Great

  • @DragonBallSuperCentralTV
    @DragonBallSuperCentralTV 6 ปีที่แล้ว +10

    Hey Brandon. Appreciate you doing these videos for us newbies. I have a request, could you do a simple sign in tutorial that includes google authentication which ultimately takes you to another page if the login was successful.

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

      Thank you and thanks for the feedback! Great idea for a video. I've queued it up on my list.

    • @DragonBallSuperCentralTV
      @DragonBallSuperCentralTV 6 ปีที่แล้ว +1

      Great!

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Thank you!

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

      Great video Brandon, Do you have a prototype for passing data to another app. Such as passing username to another app after login is successful.

  • @jay2jp
    @jay2jp 6 ปีที่แล้ว

    Hi Brandon, When i try to do this its between two different dart files, and it claims that value is not a defined parameter, any advice?

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

    I was stuck for days and yours was the simplest example! thank you very much!!
    Just a question: I have Page 1 as homepage, and I have the textfield/button on Page 2. Since Page 1 is home and the value is not set yet, it says "null" in its place. how can I fix that to show at least something until its changed?
    I used the if(widget.name !=null) before the Textfield for now but it shows blank

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

    Hello Great tutorial!! What if I wanted to pass a whole list of strings?

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

    naisuu

  • @aestheticcoders
    @aestheticcoders 5 ปีที่แล้ว

    How to use fluro for more advanced navigation stuff.

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

    how do i convert the value from the text field to a double? to use with functions

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

    How can I build a button when I click on it that will convert me to a new page with a container builder That is, whenever you press the button, it builds this container

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

    Can u tell how to pass data from stateless to stateful

  • @delosssh
    @delosssh 6 ปีที่แล้ว +1

    Hi Brandon, do you have one for Redux?

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Great idea! I've got this on my want to record list. Thanks for the feedback!

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

    But what if for example you have a four paged data gatherer app so how would you send the data from page 1 to four while going through page 2 and 3?

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

    i am stuck in sending a list, can you help me ?

  • @chintuconsultancyservices6199
    @chintuconsultancyservices6199 6 ปีที่แล้ว

    Thanks Brandon , I benefited from your video.

  • @andyjohannes4233
    @andyjohannes4233 5 ปีที่แล้ว

    i really love the code, really simple for newbie like me! thanykou and goodluck~

  • @antd1857
    @antd1857 6 ปีที่แล้ว +1

    Thank you very much for the many useful videos.

  • @4thfugee
    @4thfugee 4 ปีที่แล้ว

    helpful, thank you

  • @yusufayobami8420
    @yusufayobami8420 4 ปีที่แล้ว

    God bless you

  • @XxK1LL3RZz
    @XxK1LL3RZz 4 ปีที่แล้ว

    thx u so much !!

  • @kyleharms10
    @kyleharms10 4 ปีที่แล้ว

    If I want to send data more than one page deep how would I go about doing that

  • @alisimon9010
    @alisimon9010 6 ปีที่แล้ว +1

    Great video. But what if i have to pass more than one different pieces of data, do i have to create multiple text controllers?

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

      Thank you! Thanks for the feedback. In the scenario I shared, you would need more controllers to observe other fields.

    • @alisimon9010
      @alisimon9010 6 ปีที่แล้ว +1

      Okay Thank you