SmartDialog class

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

compatible ↔ CompatibleSmartDialog
Compatible with older versions
getter/setter pair
config ↔ SmartConfig
SmartDialog global config
getter/setter pair

Static Methods

dismiss<T>({SmartStatus status = SmartStatus.smart, String? tag, T? result, bool force = false}) Future<void>
close dialog
show<T>({required WidgetBuilder builder, SmartDialogController? controller, Alignment? alignment, bool? clickMaskDismiss, bool? usePenetrate, bool? useAnimation, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, AnimationBuilder? animationBuilder, Duration? animationTime, Color? maskColor, Widget? maskWidget, bool? debounce, VoidCallback? onDismiss, VoidCallback? onMask, Duration? displayTime, String? tag, bool? backDismiss, bool? keepSingle, bool? permanent, bool? useSystem, bool? bindPage, BuildContext? bindWidget, Rect? ignoreArea}) Future<T?>
custom dialog
showAttach<T>({required BuildContext? targetContext, required WidgetBuilder builder, ReplaceBuilder? replaceBuilder, SmartDialogController? controller, TargetBuilder? targetBuilder, Alignment? alignment, bool? clickMaskDismiss, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, AnimationBuilder? animationBuilder, ScalePointBuilder? scalePointBuilder, bool? usePenetrate, bool? useAnimation, Duration? animationTime, Color? maskColor, Widget? maskWidget, Rect? maskIgnoreArea, VoidCallback? onMask, bool? debounce, HighlightBuilder? highlightBuilder, VoidCallback? onDismiss, Duration? displayTime, String? tag, bool? backDismiss, bool? keepSingle, bool? permanent, bool? useSystem, bool? bindPage, BuildContext? bindWidget}) Future<T?>
attach dialog
showLoading<T>({String msg = 'loading...', SmartDialogController? controller, Alignment? alignment, bool? clickMaskDismiss, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, AnimationBuilder? animationBuilder, bool? usePenetrate, bool? useAnimation, Duration? animationTime, Color? maskColor, Widget? maskWidget, VoidCallback? onDismiss, VoidCallback? onMask, Duration? displayTime, bool? backDismiss, WidgetBuilder? builder}) Future<T?>
loading dialog
showNotify<T>({required String msg, required NotifyType notifyType, WidgetBuilder? builder, SmartDialogController? controller, Alignment? alignment, bool? clickMaskDismiss, bool? usePenetrate, bool? useAnimation, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, AnimationBuilder? animationBuilder, Duration? animationTime, Color? maskColor, Widget? maskWidget, bool? debounce, VoidCallback? onDismiss, VoidCallback? onMask, Duration? displayTime, String? tag, bool? keepSingle, SmartBackType? backType}) Future<T?>
By setting NotifyType, many different types of Notify dialog can be used
showToast(String msg, {SmartDialogController? controller, Duration? displayTime, Alignment? alignment, bool? clickMaskDismiss, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, AnimationBuilder? animationBuilder, bool? usePenetrate, bool? useAnimation, Duration? animationTime, Color? maskColor, Widget? maskWidget, VoidCallback? onDismiss, VoidCallback? onMask, bool? consumeEvent, bool? debounce, SmartToastType? displayType, WidgetBuilder? builder}) Future<void>
toast message