ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Futures and Streams (Flutter FutureBuilder, StreamBuilder)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ส.ค. 2024
  • How to use Futures, FutureBuilder and StreamBuilder in Flutter. Handle Streams and Futures with async and await in Flutter and Dart.
    Click here to Subscribe to Johannes Milke: www.youtube.co...
    👉 12 Week Flutter Training | heyflutter.com
    👉 Flutter Masterclass Courses | heyflutter.com...
    Source Code | github.com/Joh...
    My Courses | heyflutter.com
    Follow Newsletter | johannesmilke....
    SUBSCRIBE HERE
    bit.ly/Johannes...
    SUPPORT & SPONSOR ME
    github.com/spo...
    TIMELINE
    0:00 FutureBuilder
    6:56 StreamBuilder
    10:19 Future (Async / Await)
    SOCIAL MEDIA: Follow Us :-)
    Twitter | / heyflutter_
    Linkedin | / heyflutter
    #Flutter #Tutorial #JohannesMilke
    LIKE & SHARE & ACTIVATE THE BELL
    Thanks For Watching :-)

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

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

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    ALL Source Code: github.com/JohannesMilke/futures_streams
    Flexible Widget Tutorial: th-cam.com/video/5TwBXLZdVvk/w-d-xo.html
    Expanded Widget Tutorial: th-cam.com/video/N1FMX4rDn6Y/w-d-xo.html
    Spacer Widget Tutorial: th-cam.com/video/n4dJVUdj4ik/w-d-xo.html
    FittedBox Widget Tutorial: th-cam.com/video/WpTMNArnXdc/w-d-xo.html
    Flutter Layout Basics Tutorial: th-cam.com/video/yYxueTNIDlA/w-d-xo.html
    Row Layout Basics Tutorial: th-cam.com/video/lY5GtNkvyhM/w-d-xo.html
    Column Layout Basics Tutorial: th-cam.com/video/nW9pAyDs-wE/w-d-xo.html
    Expansion Tile Tutorial: th-cam.com/video/vRWY-IQAin0/w-d-xo.html
    Expansion Panel Tutorial: th-cam.com/video/r7L146d9YA8/w-d-xo.html
    Bottom Sheet Tutorial: th-cam.com/video/TXYuaiukw7E/w-d-xo.html
    Popup Dialog Tutorial: th-cam.com/video/4pn-_md5Ol4/w-d-xo.html
    Dropdown Menu Tutorial: th-cam.com/video/z0ihUbwlSHs/w-d-xo.html
    PageView Tutorial: th-cam.com/video/sFXg-phkbQU/w-d-xo.html
    Page Transition Animation Tutorial: th-cam.com/video/_R3E_aof69c/w-d-xo.html
    Horizontal ListView Tutorial: th-cam.com/video/baA_J5tUtEU/w-d-xo.html
    Nested ListViews and Columns Tutorial: th-cam.com/video/ZpHuAbYWL3w/w-d-xo.html
    ChatApp UI Design Tutorial: th-cam.com/video/eGhvL082-Pc/w-d-xo.html

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

    An impressive explanation, everything very clear, thank you very much for your time to create this video.

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

      Glad to hear that, You are most welcome Software BJT! 😊

  • @devkumar9889
    @devkumar9889 5 หลายเดือนก่อน

    I came from js and this was so easy to understand
    In short : Streams are higher version of Future
    Future = Waiting -> Done
    Stream = Waiting -> Active -> Done

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

      Cool @devkumar9889 😀

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

    Thanks for existing Johannes

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

    it’s most feature to dev app , thanks you for bring this to teach us😄

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

    finally your voice 😌

  • @crazy-man
    @crazy-man 2 ปีที่แล้ว +1

    cool, as always, the necessary topics are revealed

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

    very very thanks johannes,
    that video is very usefull...

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

      Glad I could be of help, Thank you SuSi Empire! 😊

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

    Finally I found what I've been looking for. Thanks! :)

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

      You are welcome, @smartcoding__!

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

    Thabks! You just saved my life

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

    Those little hints, hidden some where are imho the strength of "this guy" ;) great work.

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

      Thanks, inselbergos! 🙂

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

    Love it! When you can, make a video of a real context using streambuilder, thanks any way!

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

    Awesome thank you for the video ☺️

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

    Thanks johannes!

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

      You are welcome, @joseinTokyo 😊

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

    Internet video player how to change a quality please explain

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

    Hello sir, very COOL tutorial. Thanks a lot!!!

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

    Thank you man!

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

      You are welcome, Average Guy!

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

    Nice video, helpful very clear explanation.

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

    Wondafull. 😍
    Thank u Johanes for this video 👍📹

  • @amit.flutter
    @amit.flutter 2 ปีที่แล้ว

    Hello @johannes Milke i big fan of your teaching style for that thank you so much I have one request for you that make video on "BACKUP APP DATA IN GOOGLE CLOUD LIKE WHATSAPP BACKUP"

  • @user-hd8ye7vk2o
    @user-hd8ye7vk2o 2 ปีที่แล้ว

    Amazing video! Can you make a video about the block package?

  • @SuongGioDoiTrai91
    @SuongGioDoiTrai91 5 หลายเดือนก่อน

    thanks bro!

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

      You are welcome, @SuongGioDoiTrai91!

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

    Thanks 🌸

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

      You are welcome, Abdulkarim Salem!

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

    Great video. Thanks

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

    johannes can you explain on next vedio => how to return multi arguments with return ..... but retun just recive just 1 argument ///// for example in textfield when user pressed on close icon on suffix iconBotton we will return controlle.clear() and return isSendButtonActive = false i didnt see any vedio for explain this subject from you

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

    Hello sir ,
    Is there any tutorial for using my own augmented reality feature in project by flutter?
    I appreciate your help :)

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

      Thank You Luffy Zoro! Follow this link: medium.flutterdevs.com/augmented-reality-in-flutter-1153b0ef2758
      I hope you will get your answer 🙂

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

    Guten Abend Johannes. Ich habe ein Problem. Ich arbeite an einem Projekt, ich muss eine Anwendung oder ein System wie kahoot codieren. Das ist eine Plattform, auf der jeder zur gleichen Zeit Multiple-Choice-Fragen beantworten kann. Aber ich stecke insbesondere bei der Frage fest, wie ich die gleiche Frage allen gleichzeitig anzeigen und ihre Antworten speichern kann. Ich kann zum Beispiel keine Funktion starten, wenn sich eine Variable auf Firebase ändert. Kannst du mir bitte helfen?

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

    thank you sir

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

      You are welcome, Duccc!

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

      @@HeyFlutter sir, can you answer the question i asked you on facebook

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

      i have a problem with firebase i wanna ask you, can you answer me?

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

    great sir😍😍😍😍😍😍😍

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

      Thank you, Abdul Rasheed! 🙂

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

    Hello Mr. Milke! For the streaming section, I wanted to ask how would you do a broadcast stream? That is, one that you could subscribe to more than once. I've seen other videos that seem to be using older code that use a streamcontroller and set it to be a broadcast. Is that functionality still available? Thank you!

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

      Thank You Alex Boyd! Follow this link: medium.com/flutter-community/flutter-stream-basics-for-beginners-eda23e44e32f
      I hope you will get your answer 🙂

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

    Hello, thank you for the video, you did not dispose stream, is there any specific reason to not dispose it? or it is unnecessary since you use getUserUpdatedLocationStream() function?

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

      Thank You Ergün Erkuş! Follow this link: www.geeksforgeeks.org/flutter-dispose-method-with-example/
      I hope you will get your answer 🙂

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

    Hello brother can you please show us how tp use workmanager package for ios specially .
    Also there is a package called Home_widget its about create home screen widgets with native code .

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

    Difference between FutureBuilder, StreamBuilder
    fixed value : changing = return : yield

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

      Great, Thank you Jeffrey Lim!

  • @louisesandrinee.1882
    @louisesandrinee.1882 2 ปีที่แล้ว

    very good tutorial. if you have to make several calls to the same api. A bit like for the shazam application. How can we proceed?

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

      Thank You Louise Sandrine E.! Follow this link: alla-hajj.medium.com/how-to-handle-multiple-api-calls-in-flutter-dart-like-pro-33200f0b8520
      I hope you will get your answer 🙂

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

    My future builder keeps refetching data. How do I stop this?

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

      use snapshot.currentState if it's done ✔️ use a break;

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

      @@belveloper share a snippet? I've tried memoizing the function call the api but it keeps firing, every time. I've done what's in the video already with no luck

    • @crazy-man
      @crazy-man 2 ปีที่แล้ว

      2:27 even if he made a request only in the initialization as in the video?

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

      Thank You Joseph Joey! Follow this link: stackoverflow.com/questions/53170330/reload-data-when-using-futurebuilder
      I hope you will get your answer 🙂

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

    Hello thanks you for your good 👍 video but I was wondering 🤔 how I can read array of object from firebase

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

      Thank You basel izz! Follow this link: stackoverflow.com/questions/50808513/how-do-you-load-array-and-object-from-cloud-firestore-in-flutter
      I hope you will get your answer 🙂

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

      @@HeyFlutter thank you 🙏

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

    is it possible to make a class that uses a cron job to generate scheduled functions and pass it to a stateful widget?

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

      Thank You jones mondejar! Follow this link: medium.com/swlh/the-simplest-way-to-pass-and-fetch-data-between-stateful-and-stateless-widgets-pages-full-2021-c5dbce8db1db
      I hope you will get your answer 🙂

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

    tks sir

  • @MorsHs
    @MorsHs 4 หลายเดือนก่อน

    how about assigning Stream/Future to non Stream/Future Variable

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

      Thank You @MorsHs! Follow this link: stackoverflow.com/questions/53293928/how-to-convert-a-future-in-flutter-to-a-stream
      I hope you will get your answer 🙂

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

    great

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

      Thanks, haroldpepete! 🙂

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

    hello sir

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

    Sir, how about getx?

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

      @@HeyFlutter thank you sir, i am waiting for your video

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

    free reading

  • @AK-pt1ih
    @AK-pt1ih 2 ปีที่แล้ว +1

    Can you do a BLOC video

    • @AK-pt1ih
      @AK-pt1ih 2 ปีที่แล้ว

      @@HeyFlutter Really appreciate it man

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

    live flutter join

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

    Miss your voice. 😭

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

    your code isnot open source please make it open sorce i am trying but i can't take permission

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

      Thank You Toshtemirov Asliddin!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

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

    please make firebase realtime and Google sheets data transfer vice versa, don't add this to list
    please make this video as soon as possible please...

  • @MuhammadRizki-cl3ru
    @MuhammadRizki-cl3ru ปีที่แล้ว

    arghhh too much information in short videos haha, my head is arghghghgh

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

      Glad you liked it, Muhammad Rizki 😀