Flutter FutureBuilder Widget

preview_player
Показать описание
The FutureBuilder is a Widget that builds itself from the latest snapshot of interaction of a certain Future. If we create the future at the same time that we build the Future Builder, then the FutureBuilder's parent will be rebuilt everytime, the async task will eventually be restarted. It's a great what to wait for value before removing the Circular Procgress Indicator and show a different widget after. You can also handle errors coming from the Future if needed.

COURSES

OVERVIEW
0:00​ FutureBuilder
0:10​ Future String
0:20 Handle errors
0:30 Future Builder Widget
0:40 If connection waiting
0:50 If Error
1:00 Return Waiting/Error
1:10 Snapshot Date
1:20 Elevated Button
1:30 Throw Error
1:40 Flutter Courses
1:50 Flutter of the day

MISSION
Our mission at Flutter Mapp (Flutter Mobile App) is to help purpose driven Flutter developers go full-time doing what they love and making an impact through coding. We achieve this with useful Flutter tips and clean UI design apps.

RECOMMENDED

SOCIAL MEDIA:

CONTACT

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

For future watchers be wary of a big mistake made in this video. With FutureBuilders you do not want to create a Future wthin the FutureBuilder. In this example it is `getData()`. You want to pass an **instance** of a Future.

You can really see the issue when they call setState. Granted they get their refresh functionality, but it causes technical debt because it can lead to bad user experience. Imagine calling setState for something completely different, and now the user has to wait for the Future again. You have to write some work around, when the actual issue is that every time the build function is called the Future is recreated and therefore you have to wait again.

Otherwise great video, but just be wary of that gotcha - Future watchers

pcelis
Автор

Wow you nailed the explaination in under 2 mins! 👏👏👏

randomusername
Автор

Simple, clear, Short, pretty straight forward. I usually say... The best flutter showcase

petroniobonavides
Автор

I have been making some programming videos myself, and I must say that your language, tone and video style is so clear. Great video!

HermanPalmgren
Автор

What a fabulous channel for flutter devs mahn wow!!

SAURABHGUPTA_DINOSAUR
Автор

short, focus on important, wonderful

firasnizam
Автор

Thanks for providing this such awesome video...

TrikNgonlen
Автор

Nailed it!!!! Best video on Future builder 😃

nsptech
Автор

Holy moly, this channel is so helpful

azverndias
Автор

Can i preview flutter app in my real android phone without android studio?

tikka
Автор

can you explain how to fast and easy create flutter maps location realtime

dimasismu
Автор

what if instead of a string i want to return a widget?

altayebyousif