SmartDialog class

Constructors

SmartDialog()

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 Properties

config ↔ Config
SmartDialog global config
getter/setter pair

Static Methods

dismiss({SmartStatus? status, String? tag, int closeType = 0}) Future<void>
It is recommended to use the status param, and keep the closeType param for compatibility with older versions
show({required Widget widget, AlignmentGeometry? alignmentTemp, bool? clickBgDismissTemp, bool? isLoadingTemp, bool? isPenetrateTemp, bool? isUseAnimationTemp, Duration? animationDurationTemp, Color? maskColorTemp, Widget? maskWidgetTemp, bool? debounceTemp, VoidCallback? onDismiss, String? tag, bool? backDismiss, bool? keepSingle, bool? useSystem}) Future<void>
custom dialog:param with a suffix of 'temp', indicating that such params can be set to default values in Config
showAttach({required BuildContext? targetContext, required Widget widget, Offset? target, AlignmentGeometry? alignmentTemp, bool? clickBgDismissTemp, bool? isLoadingTemp, bool? isPenetrateTemp, bool? isUseAnimationTemp, Duration? animationDurationTemp, Color? maskColorTemp, Widget? maskWidgetTemp, bool? debounceTemp, Positioned? highlight, HighlightBuilder? highlightBuilder, VoidCallback? onDismiss, String? tag, bool? backDismiss, bool? keepSingle, bool? useSystem}) Future<void>
custom dialog for specific locations:param with a suffix of 'temp', indicating that such params can be set to default values in Config
showLoading({String msg = 'loading...', Color background = Colors.black, bool? clickBgDismissTemp, bool? isLoadingTemp, bool? isPenetrateTemp, bool? isUseAnimationTemp, Duration? animationDurationTemp, Color? maskColorTemp, Widget? maskWidgetTemp, bool? backDismiss, Widget? widget}) Future<void>
loading dialog:param with a suffix of 'temp', indicating that such params can be set to default values in Config
showToast(String msg, {bool? clickBgDismissTemp, bool? isLoadingTemp, bool? isPenetrateTemp, bool? isUseAnimationTemp, Duration? animationDurationTemp, Color? maskColorTemp, Widget? maskWidgetTemp, AlignmentGeometry alignment = Alignment.bottomCenter, bool? consumeEvent, Duration? time, bool? debounceTemp, SmartToastType? type, Widget? widget}) Future<void>
toast message: param with a suffix of 'temp', indicating that such params can be set to default values in Config