flutter_async library

A library to easily display asynchronous operations in Flutter.

Classes

AnimatedSizeConfig
Configuration for AnimatedSize.
Async
Async scope for flutter_async.
AsyncBuilder<T>
A Widget that listens to Future and Stream events.
AsyncBuilderConfig
The configuration of AsyncBuilder.
AsyncBuilderState<T>
The State of AsyncBuilder.
AsyncButton
AsyncButtonConfig
The configuration of AsyncButton.
AsyncButtonResolvedConfig
The resolved config of AsyncButton.
AsyncButtonState
The AsyncState of AsyncButton.
AsyncConfig
The entire configuration of flutter_async, holded by Async.
AsyncElevatedButton
Async version of ElevatedButton.
AsyncFilledButton
Async version of FilledButton.
AsyncFloatingActionButton
Async version of FloatingActionButton.
AsyncIconButton
Async version of FloatingActionButton.
AsyncIndicator
A smart adaptive CircularProgressIndicator.
AsyncKey<T>
A GlobalKey that can be used to access the AsyncButtonState or AsyncBuilderState of an AsyncButton or AsyncBuilder.
AsyncOutlinedButton
Async version of OutlinedButton.
AsyncTextButton
Async version of TextButton.

Typedefs

AsyncButtonConfigurator = AsyncButtonConfig? Function(BuildContext context)
Signature for a function that creates a AsyncButtonConfig.
AsyncButtonLogger = void Function(AsyncButtonEvent event, AsyncButtonState state)
AsyncButtonStateBuilder = Widget Function(BuildContext context, AsyncButtonState state, Widget child)
Signature for a function that creates a Widget for AsyncButton.
AsyncPagedBuilder<T> = Widget Function(BuildContext context, ScrollController controller, List<T> data)
Signature to build the paged list of data.
AsyncThemeGetter = ThemeData Function(BuildContext context)
Gets a ThemeData from a BuildContext.
DataBuilder<T> = Widget Function(BuildContext context, T data)
A signature for the AsyncBuilder function.
ErrorBuilder = Widget Function(BuildContext context, Object error, StackTrace stackTrace)
A signature for the Async.errorBuilder function.
SnackBarBuilder = SnackBar Function(BuildContext context, String message)
Signature for a function that creates a SnackBar.
ThemeBuilder = ThemeData Function(BuildContext context)
A signature for the Async.loadingBuilder function.