Flutter & Dart · Component
FutureBuilder
FutureBuilder builds a widget from the latest snapshot of a Future. Create the Future before build, then use the snapshot to render loading, data, or error states.
Last updated
Syntax
const FutureBuilder<T>({Key? key, required Future<T>? future, T? initialData, required AsyncWidgetBuilder<T> builder})In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AsyncSnapshotAsyncWidgetBuilderConnectionStateStreamBuilderState.initStateState.didUpdateWidgetState.didChangeDependencies