Flutter, originally called Sky, is known for its ability to deliver 120 fps even though it operates on a single-threaded model. This post discusses Dart's concurrency model using the event loop and isolates, and dives into the workings of Futures, including their states and various ways to create and handle them. It highlights techniques for managing results from Futures using callbacks, the async/await pattern, and the FutureBuilder widget in Flutter. The post also touches on running multiple Futures in parallel using FutureGroup and Future.wait.

10m read timeFrom medium.com
Post cover image
Table of contents
Future in FlutterConcurrency in DartThe Event LoopFuture:Getting Results from the Future:3- Future Builder:running many Future in Parallel:
3 Comments

Sort: