CustomDialog class

Constructors

CustomDialog()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

hide(BuildContext context) → void
Hides the dialog by popping the current route if it exists. If the dialog has already been popped or the context is no longer valid, this function will do nothing.
show<T>(BuildContext context, {required Widget child, bool canPop = true, Duration transitionDuration = Durations.medium4, Duration reverseTransitionDuration = Durations.medium2, Curve? curve, Offset? blurSigma, Color? barrierColor, TransitionType transitionType = TransitionType.fade, bool opaque = false, bool fullscreenDialog = false}) → Future<T?>
showLoadingDialog<T>(BuildContext context, {String msg = "Just a moment...", Color? msgTextColor, double? msgTextSize, TextStyle? msgTextStyle, bool canPop = true, Color? backgroundColor, Color? progressIndicatorColor, Duration transitionDuration = Durations.medium4, Duration reverseTransitionDuration = Durations.medium2, Curve? curve, bool adaptToScreenSize = false, Offset? blurSigma, Color? barrierColor, TransitionType transitionType = TransitionType.fade}) → Future<T?>
Shows the loading dialog by pushing a custom route using loadingDialogBuilder. It now takes the BuildContext as a required parameter.

Constants

loadingMessages → const List<String>