ProgressDialog class

Simple progress dialog with blur background and popup animations, use DialogStyle to custom it inspired by ProgressDialog from Android Native, and it very simple to use

Constructors

ProgressDialog(BuildContext context, {DialogTransitionType? dialogTransitionType, Color? backgroundColor, Widget? cancelText, Widget? defaultLoadingWidget, double? blur, Function? onCancel, bool? dismissable, Function? onDismiss, Widget? title, Widget? message, DialogStyle? dialogStyle, Duration? transitionDuration})

Properties

backgroundColor Color?
Dialog Barrier background color
final
blur double?
Blur on background
final
cancelText Widget?
The (optional) cancel text that are displayed at the cancel button of the dialog.
final
context BuildContext
The context
final
defaultLoadingWidget Widget?
The (optional) default progress widget that are displayed before message of the dialog, it will replaced when you use setLoadingWidget, and it will restored if you setLoadingWidget(null).
final
dialogStyle DialogStyle?
Custom dialog style
final
dialogTransitionType DialogTransitionType?
Dialog Transition Type
final
dismissable bool?
Is your dialog dismissable, because its warp by BlurDialogBackground, you have to declare here instead on showDialog
final
hashCode int
The hash code for this object.
no setterinherited
message Widget?
The (optional) message of the progress dialog is displayed in the center of the dialog in a lighter font.
final
onCancel Function?
The (optional) on cancel button that will display at the bottom of the dialog. Note : Do not use POP to cancel the dialog, just put your cancel code there
final
onDismiss Function?
Action on dialog dismissing
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget?
The (optional) title of the progress dialog is displayed in a large font at the top of the dialog.
final
transitionDuration Duration?
Dialog Transition Duration
final

Methods

dismiss() → void
Dissmiss progress dialog
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBackgroundColor(Color color) → void
You can set background / barrier color of dialog using this function, even the dialog already pop up. Set it Null to change it as default
setLoadingWidget(Widget loadingWidget) → void
You can set loading widget of dialog using this function, even the dialog already pop up. Set it Null to change it as default CircularProgressIndicator or loadingWidget that already you set before
setMessage(Widget message) → void
You can set message of dialog using this function, even the dialog already pop up
setTitle(Widget title) → void
You can set title of dialog using this function, even the dialog already pop up
show({bool useSafeArea = true}) → void
Show progress dialog
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

future<T>(BuildContext context, {required Future future, DialogStyle? dialogStyle, double? blur, Color? backgroundColor, OnProgressError? onProgressError, OnProgressFinish? onProgressFinish, OnProgressCancel? onProgressCancel, Function? onDismiss, bool? dismissable, Widget? message, Widget? title, Widget? cancelText, Widget? progressWidget, DialogTransitionType? dialogTransitionType, Duration? transitionDuration, bool useSafeArea = true}) Future
future function let you show ProgressDialog until future (param) reach the end of its action