LoadingUtilsCore 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
Static Methods
-
dismiss()
→ Future<void>
-
-
loading({String? msg, SmartDialogController? controller, Alignment? alignment, bool? clickMaskDismiss, SmartAnimationType? animationType, List<SmartNonAnimationType>? nonAnimationTypes, Widget animationBuilder(AnimationController, Widget, AnimationParam)?, bool? usePenetrate, bool? useAnimation, Duration? animationTime, Color? maskColor, Widget? maskWidget, void onDismiss()?, void onMask()?, Duration? displayTime, SmartBackType? backType, Widget builder(BuildContext)?})
→ void
-
loading弹窗
msg:loading 的信息(使用builder参数,该参数将失效)
controller:可使用该控制器来刷新自定义的loading的布局
alignment:控制弹窗的位置, 详细请参照SmartConfigLoading中alignment参数说明
clickMaskDismiss:true(点击遮罩后,将关闭loading),false(不关闭)
animationType:具体可参照SmartAnimationType注释
nonAnimationTypes:对于不同的场景, 可动态关闭弹窗动画, 具体请参照SmartNonAnimationType
animationBuilder:支持高度自定义动画, 具体可参照AnimationBuilder说明
usePenetrate:true(点击事件将穿透遮罩),false(不穿透)
useAnimation:true(使用动画),false(不使用)
animationTime:动画持续时间
maskColor:遮罩颜色,如果给maskWidget设置了值,该参数将会失效
maskWidget:可高度定制遮罩
onDismiss:在dialog被关闭的时候,该回调将会被触发
onMask:点击遮罩时,该回调将会被触发
displayTime:控制弹窗在屏幕上显示时间; 默认为null, 为null则代表该参数不会控制弹窗关闭
backDismiss:true(返回事件将关闭loading,但是不会关闭页面),false(返回事件不会关闭loading,也不会关闭页面)