ProgressDialog class

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

Constructors

ProgressDialog({required dynamic 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 = Colors.white, Color? surfaceTintColor, Color barrierColor = Colors.transparent, Color progressValueColor = Colors.blueAccent, Color progressBgColor = Colors.blueGrey, Color valueColor = Colors.black87, Color msgColor = Colors.black87, TextAlign msgTextAlign = TextAlign.center, FontWeight msgFontWeight = FontWeight.bold, FontWeight valueFontWeight = FontWeight.normal, double valueFontSize = 15.0, double msgFontSize = 17.0, 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