FutureBuilder (Flutter Widget of the Week)

preview_player
Показать описание
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, French, German, Japanese, Korean, Portuguese, and Spanish.

Рекомендации по теме
Комментарии
Автор

These short videos are so educational. I have never been so eagerly excited for a new episode on YouTube.
Already waiting for the next video.
BTW, thank you Google Developers.

MukutBrahma
Автор

I love your intro seqence and music. It immediately puts me into a good mood :)

SergioArroyoSailing
Автор

I didn't use any FutureBuilder widgets in my current medium-sized app.

Just because I use Provider and follow MVVM pattern. That means all business logic is made in the ViewModel class and it just notifies the UI widget (page) about state changes.
The UI page checks fields and states of it's ViewModel and renders UI correspondingly.
For example showing Circular Progress Bar or display Data.

I consider putting business logic in a stateful widget a bad practice

kirill
Автор


The correct usage of the "future" argument is to create a pointer to a Future function that has been executed outside the build method, such as in the initState method of a Stateful widget. You have to add some boilerplate code to get around this limitation.

I wish FutureBuilder actually worked as depicted in this video. Hopefully, the Flutter team will improve the widget so that it does not re-execute the future function when it is not necessary.

To learn the correct usage of FutureBuilder, do a Google or YouTube search on "correct usage of FutureBuilder.

brianmartindunn
Автор

Next up, STREAMBUILDER! the best widget ever made.

LukePighetti
Автор

I already used it.
But actually now i got exactly use of this widget.
Thanks google.
Make it daily.

chandreshpatel
Автор

This series are very welcome, and the members of the flutter video series are reaching our expectations and beyond. I'm so happy as a mobile developer that this people are involved. Thank you.

marianoarganaraz
Автор

(For review)
What's the difference between FutureBuilder and StreamBuilder?

vinceramces
Автор

Huh, I always wondered how a plumbus was made. Oh, wrong video

tbranch
Автор

awesome as always, flutter is the future! (pun not intended)

Mzulfreaky
Автор

Thank you, Google team, for making a difficult topic look like a fun thing. I enjoy it. Please make it more.

lovelyu
Автор

HOW IS THIS SO SHORT AND YET SO INFORMATIVE.

ih
Автор

I'll give #FutureBuilder a try in the #FUTURE lol

abmorphious
Автор

am really enjoying flutter to the fullest now....i have always wanted this on you tube, i think the flutter has killed it....👍up

francisfuwaku
Автор

guys can we use flutter with react easily coz some says react native is better with react project but i do not like it much

rohit
Автор

i think i like this better than other kinds of async programming like callbacks

pdxprogress
Автор

soy el primer comentario XD .. esta genial FutureBuilder...

cristofherfrancia
Автор

Why not Widget of the day instead of widget of the week?

instrumental_box
Автор

There's a serious mistake in this video.
You shouldn't put http.get right into the FutureBuilder, because it will be re-invoked on every build() call. FutureBuilder just passively watches for an existing future, it shouldn't fire any requests.
Instead, put your request into the Future state variable, and watch this variable in the `future:` param.

sergey_molchanovsky
Автор

Will this widget be the solution for all the asynchronous chaos in Flutter?

jinwookkim