SmartProgressController class

Controller to manage the SmartProgressDialog lifecycle and state transitions.

Constructors

SmartProgressController()

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

attach(BuildContext context) → void
Attach the controller to a BuildContext for showing dialogs.
detach() → void
Detach the controller from the current context.
dismiss() → void
Manually dismiss the dialog.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({SmartProgressState state = SmartProgressState.loading, String? text, double size = 80, Color color = Colors.teal, Color backgroundColor = Colors.white, bool autoDismiss = true}) → void
Show a custom dialog with the given parameters.
showFailure({String? text, Color? color, bool autoDismiss = true}) → void
Show a failure animation and dismiss automatically.
showInfo({String? text, Color? color, bool autoDismiss = true}) → void
Show a success animation and dismiss automatically.
showLoading([String? text]) → void
Show a loading spinner.
showSuccess({String? text, Color? color, bool autoDismiss = true}) → void
Show a success animation and dismiss automatically.
showWarning({String? text, Color? color, bool autoDismiss = true}) → void
Show a warning animation and dismiss automatically.
toString() → String
A string representation of this object.
inherited

Operators

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