ProgressDialog class

The main class for creating and managing progress dialogs.

This class provides a simple interface to show customizable progress dialogs with support for two types: normal loading dialogs and download progress dialogs.

Example usage:

final ProgressDialog pr = ProgressDialog(context);
pr.style(message: 'Loading...');
await pr.show();
// Update the dialog
pr.update(message: 'Almost done...');
await pr.hide();

Constructors

ProgressDialog(BuildContext context, {ProgressDialogType? type, bool? isDismissible, bool? showLogs, TextDirection? textDirection, Widget? customBody})
Creates a new ProgressDialog instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hide() Future<bool>
Hides the progress dialog if it's currently visible.
isShowing() bool
Checks whether the progress dialog is currently visible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<bool>
Displays the progress dialog with the current configuration.
style({Widget? child, Widget? widgetAboveTheDialog, double? progress, double? maxProgress, String? message, Widget? progressWidget, Color? backgroundColor, TextStyle? progressTextStyle, TextStyle? messageTextStyle, double? elevation, TextAlign? textAlign, double? borderRadius, Curve? insetAnimCurve, EdgeInsets? padding, Alignment? progressWidgetAlignment}) → void
Configures the styling and appearance of the progress dialog.
toString() String
A string representation of this object.
inherited
update({double? progress, double? maxProgress, String? message, Widget? progressWidget, TextStyle? progressTextStyle, TextStyle? messageTextStyle}) → void
Updates the dialog content while it's being displayed.

Operators

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