ProgressDialog class

A customizable progress dialog that displays loading states and completion messages.

Constructors

ProgressDialog({required BuildContext context, bool? useRootNavigator})
Creates a progress dialog with the given build context.

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

close({int? delay = 0}) → void
Closes the dialog with optional delay.
dispose() → void
Releases resources used by the dialog. Should be called when the dialog is no longer needed.
isOpen() bool
Returns whether the dialog is currently open.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({int max = 100, String msg = "Default Message", Completed? completed, Cancel? cancel, ProgressType progressType = ProgressType.indeterminate, ValuePosition valuePosition = ValuePosition.right, Color? backgroundColor, Color? surfaceTintColor, Color? barrierColor, Color? progressValueColor, Color? progressBgColor, TextStyle? valueStyle, TextStyle? msgStyle, TextAlign msgTextAlign = TextAlign.center, int msgMaxLines = 1, double elevation = 5.0, double borderRadius = 15.0, bool barrierDismissible = false, bool hideValue = false, int closeWithDelay = 100, ValueChanged<DialogStatus>? onStatusChanged}) Future<void>
Shows the progress dialog with customizable options.
toString() String
A string representation of this object.
inherited
update({int? value, String? msg}) → void
Updates the dialog's progress value and message.

Operators

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