ModalBoxOptions class
- Inheritance
-
- Object
- ModalOptions
- ModalBoxOptions
Constructors
- ModalBoxOptions({AlignmentGeometry? alignment = Alignment.center, double gaussian = 0, bool? ignoring, bool? absorbing, Color? backgroundColor, GestureTapCallback? onModalTap, MaterialType? type, double? elevation, Color? shadowColor, TextStyle? textStyle, BorderRadiusGeometry? borderRadius, ShapeBorder? shape, bool? borderOnForeground, Color? foregroundColor, BoxConstraints? constraints, bool safeLTRB = true, bool resizeToAvoidBottomInset = true, Curve insetAnimationCurve = Curves.decelerate, Duration insetAnimationDuration = const Duration(milliseconds: 100)})
-
const
Properties
- absorbing → bool?
-
是否吸收子组件的点击事件且不响应背景点击事件 默认 false
onTap
!= null 时 无效finalinherited - alignment → AlignmentGeometry?
-
modal上的组件对齐方式 alignment
finalinherited
- backgroundColor → Color?
-
背景色
finalinherited
- borderOnForeground → bool?
-
finalinherited
- borderRadius → BorderRadiusGeometry?
-
finalinherited
- constraints → BoxConstraints?
-
constraints
finalinherited
- elevation → double?
-
finalinherited
- foregroundColor → Color?
-
前景色
finalinherited
- gaussian → double
-
高斯模糊
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoring → bool?
-
是否忽略子组件点击事件响应背景点击事件 默认 false
finalinherited
- insetAnimationCurve → Curve
-
当键盘弹出时 modal 顶起 动画 Curve
finalinherited
- insetAnimationDuration → Duration
-
当键盘弹出时 modal 顶起 动画 Duration
finalinherited
- onModalTap → GestureTapCallback?
-
Modal
背景点击事件finalinherited - resizeToAvoidBottomInset → bool
-
resizeToAvoidBottomInset
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeLTRB → bool
-
SafeArea
finalinherited
- shadowColor → Color?
-
finalinherited
- shape → ShapeBorder?
-
finalinherited
- textStyle → TextStyle?
-
Material 属性
finalinherited
- type → MaterialType?
-
finalinherited
Methods
-
copyWith(
{GestureTapCallback? onModalTap, Color? backgroundColor, Color? foregroundColor, bool? ignoring, bool? absorbing, double? gaussian, AlignmentGeometry? alignment, TextStyle? textStyle, BorderRadiusGeometry? borderRadius, MaterialType? type, double? elevation, Color? shadowColor, ShapeBorder? shape, bool? borderOnForeground, BoxConstraints? constraints, bool? safeLTRB, bool? resizeToAvoidBottomInset, Duration? insetAnimationDuration, Curve? insetAnimationCurve}) → ModalBoxOptions -
merge(
[ModalBoxOptions? options]) → ModalBoxOptions -
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