SmartConfigLoading class
showLoading() global config
showLoading() 全局配置
Constructors
-
SmartConfigLoading({Alignment alignment = Alignment.center, SmartAnimationType animationType = SmartAnimationType.fade, Duration animationTime = const Duration(milliseconds: 200), bool useAnimation = true, bool usePenetrate = false, Color maskColor = const Color.fromRGBO(0, 0, 0, 0.46), Widget? maskWidget, bool backDismiss = true, bool clickMaskDismiss = false, Duration leastLoadingTime = const Duration(milliseconds: 0), SmartAwaitOverType awaitOverType = SmartAwaitOverType.dialogDismiss, SmartMaskTriggerType maskTriggerType = SmartMaskTriggerType.up, List<
SmartNonAnimationType> nonAnimationTypes = const [SmartNonAnimationType.routeClose_nonAnimation, SmartNonAnimationType.continueLoading_nonAnimation], bool isExist = false})
Properties
- alignment → Alignment
-
control the location of the dialog on the screen
final
- animationTime → Duration
-
animationTime:The animation time can be set
final
- animationType → SmartAnimationType
-
Animation type animationType:For details, please refer to the SmartAnimationType comment
final
- awaitOverType → SmartAwaitOverType
-
The type of dialog await ending
final
- backDismiss → bool
-
true(the back event will close the loading but not close the page),
false(the back event not close the loading and not close page),
you still can use the dismiss method to close the loading
final
- clickMaskDismiss → bool
-
true(dialog will be closed after click background),false(not close)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExist ↔ bool
-
whether loading(showLoading()) exist on the screen
getter/setter pair
- leastLoadingTime → Duration
-
leastLoadingTime: If this param is set to 1 second, dismiss() is called immediately after showLoading(),
loading will not be closed immediately, but will be closed when the loading time reaches 1 second
final
- maskColor → Color
-
the color of the mask,it is invalid if usePenetrate is true or maskWidget set the value
final
- maskTriggerType → SmartMaskTriggerType
-
When the mask is clicked, the trigger timing type (please refer to the SmartMaskTriggerType note for details)
final
- maskWidget → Widget?
-
highly customizable mask, it is invalid if usePenetrate is true
final
-
nonAnimationTypes
→ List<
SmartNonAnimationType> -
For different scenes, the pop-up animation can be dynamically closed.
For details, please refer to
SmartNonAnimationType
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useAnimation → bool
-
default(true),true(use the animation),false(not use)
final
- usePenetrate → bool
-
On-screen interaction events can penetrate the masked background:
true(click event will penetrate background),false(not penetration)
final
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