FutureBuilder (Widget of the Week)

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2022
  • Learn more about FutureBuilder → goo.gle/3mEyrM0
    DartPad → goo.gle/3OgtSGi
    Got a Future and need some widgets to display its value? Try FutureBuilder! Give it a Future and a build method, and it'll create widgets based on the status of the future, plus update them when it changes.
    This video is also subtitled in Chinese, Indonesian, Japanese, Korean, Portuguese, Spanish, Arabic, Brazilian Portuguese, Russian, and Vietnamese.
    Get more tips! → goo.gle/FlutterWidget
    Subscribe to Flutter! → goo.gle/FlutterYT
    #WidgetOfTheWeek #Widgets #Flutter
  • НаукаНаука

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

  • @flutterdev
    @flutterdev  Год назад +17

    Subscribe for the latest → goo.gle/FlutterYT

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

      Hi Google team. I think Google always trying to do something better for us. I also depend on Google. I know Google never make something default for us.
      Thanks
      Md.Iftakher karim Mamun
      RUclips channel name
      ikm mahi

  • @KhanhFlutter
    @KhanhFlutter Год назад +56

    Soooo don't be obtaining your futures from within the FutureBuilder, y'all!
    We didn't quite get that right in the Take 1 version of this video, so... second time's the charm? :) Thanks for the patience as we worked on getting this second version out the door!

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

      Great vid, now we are waiting 2nd take on streams, lol. :)

  • @cekroz
    @cekroz Год назад +68

    Build your future, learn flutter.

  • @nanakwame1122
    @nanakwame1122 Год назад +11

    I knew what this episode was about before watching. You guys are very accountable :)

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

    That's something I figured out thanks to stackoverflow and that it is indeed very critical to have the future function in the init state, assigned to a future variable (using late keyword) that is then passed to the future builder. snapshot has error is also very important for debugging.

  • @code-with-carlos
    @code-with-carlos Год назад

    It's so cool that in the implementation there is links to RUclips haha. Good job!

  • @user-rk1xf6ti2s
    @user-rk1xf6ti2s Год назад

    always a creative and pertinent animation in the end

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

    neat and beautiful! hats off 💙

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

    Just needed this:DDDD FLUTTER GANG LETS GO

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

    Good explanation ❤

  • @AbhishekSaral
    @AbhishekSaral Год назад +9

    I wish I had a future builder in life

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

    Awaiting for more takes 2

  • @charless.9139
    @charless.9139 Год назад

    Esse vídeo está melhor e mais claro de como fazer corretamento o uso do FutureBuilder !

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

    thanks

  • @HoangTran-op8fx
    @HoangTran-op8fx Год назад +2

    💜

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

    how can i use more than one future in a future builder?

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

    Thanks for fixing this. Now onto another low hanging fruit to milk lol

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

    Things that keep me late at night
    🤓

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

    but how we do retry the future? setState wont work

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

    💚

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

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

    Can you tell me the name. How scroll down whole page like RUclips and music player minimizer

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

    If you will call setState, the future method will be triggered, and after multiple setStates there are multiple times future method will be called, how to prevent rebuilding widget and call future method after each setState? Global boolean var?

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

      Put the future into a State variable in setState.

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

    Isn't difficult to use FtureBuilder? I always use Provider package instead

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

      I find the syntax of FutureProvider to be easier to express in code, and easier to combine with other states.

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

    what is the difference between future builder and stream builder?

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

      FutureBuilder is for building widgets based on a future while StreamBuilder does the same, but for streams

  • @Boss-pe7wr
    @Boss-pe7wr Год назад

    I have windows os, do i need a mac to learn and get job as flutter developer?

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

      Mac is only required for deploying apps to Apple devices (e.g. iOS, macOS, etc.). You can still deploy flutter to other platforms

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

    Is flutter synchronous or asynchronous? flutter alone.

  • @tomding2789
    @tomding2789 2 месяца назад

    How to refresh the future?

  • @Flora-ng8gt
    @Flora-ng8gt Год назад

    Como ouvir em português o vídeo?

  • @Murtaza-ik8ub
    @Murtaza-ik8ub Год назад

    Might wanna replace the old video in the playlist.

  • @user-tl4co3ib5o
    @user-tl4co3ib5o Год назад

    Why there is no IDE exclusive for flutter?
    VS code is a good option, but I hate when I need to add for example Firebase, or Change target SDK in android.., I have to open the app in android studio, also I tried 1000 time to build the app from vs code and always i get errors.
    Because of problems of Android packages version me and many developers spend time in solve this issues.
    It's will be a good step if flutter team Create an IDE that can help us . Like Unity , unity developers doesn't need to make changes in android native code, ....

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

      Just use Android Studio bruh, works like a charm. ¯\_(ツ)_/¯

    • @sergey_molchanovsky
      @sergey_molchanovsky 2 месяца назад

      Firebase now can be added with CLI.

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

    If I am just loading a network image from the internet should I use a future, I never do?

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

    i would appreciate condensed video with no intros and background noise, if anyone watch few widget of the week in a row, you start hating this format..

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

    Or... just use Riverpod's AsyncValue (:

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

    This is the first time I've heard this voice actress on Flutter. I hope that was her last time too, I can't get the pronunciation and speed right at all.

  • @azrinsani
    @azrinsani 4 месяца назад

    The music is very annoying

  • @CristianoRonaldo-fd4td.
    @CristianoRonaldo-fd4td. Год назад

    What is the point of these useless guides

    • @desther
      @desther Год назад +5

      Its quick overview about widget in question. They reference these videos in widget description (when you code) and i think also in docs.

    • @fethisert5527
      @fethisert5527 Год назад +22

      Bro your in my dispose method

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

      @@fethisert5527 sublime

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

      I'm still laughing.

    • @Kellnax
      @Kellnax Год назад +3

      These videos are awesome, they helped me to get started and still help me when trying new stuff

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

    Wow it seems like I used FutureBuilder wrongly, I used to call future directly in FutureBuilder and also using snapshot.hasData

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

      Many people have done this wrong, and the broken take 1 of this video didn't help. The documentation *did* explain why it was wrong, but people watch videos instead of reading. :)

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

    💙

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

    💛