SmartConfigAttach class
showAttach() global config
showAttach() 全局配置
Constructors
-
SmartConfigAttach({Alignment alignment = Alignment.bottomCenter, SmartAnimationType animationType = SmartAnimationType.centerScale_otherSlide, 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 clickMaskDismiss = true, bool debounce = false, Duration debounceTime = const Duration(milliseconds: 300), bool backDismiss = true, bool bindPage = true, SmartAwaitOverType awaitOverType = SmartAwaitOverType.dialogDismiss, SmartMaskTriggerType maskTriggerType = SmartMaskTriggerType.up, List<
SmartNonAnimationType> nonAnimationTypes = const [SmartNonAnimationType.routeClose_nonAnimation, SmartNonAnimationType.highlightMask_nonAnimation], SmartAttachAlignmentType attachAlignmentType = SmartAttachAlignmentType.center, 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
- attachAlignmentType → SmartAttachAlignmentType
-
The alignment effect when the attach dialog selects different alignment properties.
For details, please refer to SmartAttachAlignmentType
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
- bindPage → bool
-
Bind the dialog to the current page, the bound page is not on the top of the stack,
the dialog is automatically hidden, the bound page is placed on the top of the stack, and the dialog is automatically displayed;
the bound page is closed, and the dialog bound to the page will also be removed
final
- clickMaskDismiss → bool
-
true(dialog will be closed after click background),false(not close)
final
- debounce → bool
-
debounce feature,it works on toast and dialog:default(false);
final
- debounceTime → Duration
-
debounceTime:Within the debounce time, multiple clicks will only respond to the first time,
and the second invalid click will trigger the debounce time to re-time.
note: The definition of anti-shake is that the response will not be triggered again at the specified time,
which will cause a delay in the click response, so the actual implementation needs to be adjusted a little.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExist ↔ bool
-
whether attach dialog(showAttach()) exist on the screen
getter/setter pair
- 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
getter/setter pair
-
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
-
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