ModalOptions class abstract

Implementers

Constructors

ModalOptions({double gaussian = 0, bool? ignoring, bool? absorbing, Color? backgroundColor, Color? foregroundColor, GestureTapCallback? onModalTap, AlignmentGeometry? alignment, MaterialType? type, double? elevation, Color? shadowColor, TextStyle? textStyle, BorderRadiusGeometry? borderRadius, ShapeBorder? shape, bool? borderOnForeground, BoxConstraints? constraints, bool safeLTRB = true, bool resizeToAvoidBottomInset = true, Duration insetAnimationDuration = const Duration(milliseconds: 100), Curve insetAnimationCurve = Curves.decelerate})
const

Properties

absorbing bool?
是否吸收子组件的点击事件且不响应背景点击事件 默认 false onTap != null 时 无效
final
alignment AlignmentGeometry?
modal上的组件对齐方式 alignment
final
backgroundColor Color?
背景色
final
borderOnForeground bool?
final
borderRadius BorderRadiusGeometry?
final
constraints BoxConstraints?
constraints
final
elevation double?
final
foregroundColor Color?
前景色
final
gaussian double
高斯模糊
final
hashCode int
The hash code for this object.
no setterinherited
ignoring bool?
是否忽略子组件点击事件响应背景点击事件 默认 false
final
insetAnimationCurve Curve
当键盘弹出时 modal 顶起 动画 Curve
final
insetAnimationDuration Duration
当键盘弹出时 modal 顶起 动画 Duration
final
onModalTap GestureTapCallback?
Modal背景点击事件
final
resizeToAvoidBottomInset bool
resizeToAvoidBottomInset
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeLTRB bool
SafeArea
final
shadowColor Color?
final
shape ShapeBorder?
final
textStyle TextStyle?
Material 属性
final
type MaterialType?
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