flutter_future_progress_dialog library

Classes

Failure<T>
Creates the Result object with error and stackTrace containing error object and stackTrace object respectively.
ProgressDialogResult<T>
This class is used to wrap the result of asynchronous operations shown in progress dialogs. It can either be a Success containing the operation's result value, or a Failure containing error details if the operation failed.
Success<T>
Creates the Result object with value containing some value.

Functions

showAdaptiveProgressDialog<T>({required BuildContext context, required Task<T> future, WidgetBuilder? builder, bool useRootNavigator = true, Offset? anchorPoint, String? barrierLabel, TraversalEdgeBehavior? traversalEdgeBehavior, Color? barrierColor, bool useSafeArea = true, bool? requestFocus}) Future<ProgressDialogResult<T>>
Shows a platform-adaptive progress dialog while executing a Future task.
showCupertinoProgressDialog<T>({required BuildContext context, required Task<T> future, WidgetBuilder? builder, Offset? anchorPoint, String? barrierLabel, bool useRootNavigator = true, Color? barrierColor, bool? requestFocus}) Future<ProgressDialogResult<T>>
Shows a Cupertino-styled progress dialog while executing a Future task.
showProgressDialog<T>({required BuildContext context, required Task<T> future, WidgetBuilder? builder, bool useRootNavigator = true, Offset? anchorPoint, String? barrierLabel, bool? requestFocus, TraversalEdgeBehavior? traversalEdgeBehavior, Color? barrierColor, bool useSafeArea = true, bool fullscreenDialog = false, AnimationStyle? animationStyle}) Future<ProgressDialogResult<T>>
Shows a progress dialog while executing a Future task.

Typedefs

Task<T> = Future<T> Function()