ModalWindowsOptions class

Constructors

ModalWindowsOptions({double? top, double? left, double? right, double? bottom, AlignmentGeometry? alignment = Alignment.center, bool gaussian = false, bool addMaterial = false, bool ignoring = false, bool absorbing = false, double fuzzyDegree = 4, MainAxisSize mainAxisSize = MainAxisSize.min, Color? color, HitTestBehavior behavior = HitTestBehavior.opaque, GestureTapCallback? onTap, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, Axis direction = Axis.vertical, bool isScroll = false, bool isStack = false, BlendMode blendMode = BlendMode.srcOver, ImageFilter? filter, BoxConstraints? constraints})
const

Properties

absorbing bool
是否吸收子组件的点击事件且不响应背景点击事件 默认 false onTap != null 时 无效
final
addMaterial bool
是否添加Material Widget 部分组件需要基于Material
final
alignment AlignmentGeometry?
final
behavior HitTestBehavior
HitTestBehavior.opaque 自己处理事件 HitTestBehavior.deferToChild child处理事件 HitTestBehavior.translucent 自己和child都可以接收事件
final
blendMode BlendMode
final
bottom double?
final
color Color?
背景色
final
constraints BoxConstraints?
final
crossAxisAlignment CrossAxisAlignment
final
direction Axis
final
filter ImageFilter?
filter!=null 时 fuzzyDegree 无效 gaussian 必须为 true
final
fuzzyDegree double
模糊程度 0-100 gaussian 必须为 true
final
gaussian bool
是否开始背景模糊
final
hashCode int
The hash code for this object.
no setterinherited
ignoring bool
是否忽略子组件点击事件响应背景点击事件 默认 false
final
isScroll bool
****** SingleChildScrollView ****** ///
final
isStack bool
****** Stack ****** ///
final
left double?
底层子组件定位
final
mainAxisAlignment MainAxisAlignment
children 不为null 时以下参数有效 ****** Flex ****** ///
final
mainAxisSize MainAxisSize
final
onTap GestureTapCallback?
背景点击事件
final
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top double?
final

Methods

copyWith({GestureTapCallback? onTap, HitTestBehavior? behavior, Color? color, bool? ignoring, bool? absorbing, bool? addMaterial, ImageFilter? filter, bool? gaussian, double? fuzzyDegree, double? left, double? top, double? right, double? bottom, AlignmentGeometry? alignment, MainAxisAlignment? mainAxisAlignment, CrossAxisAlignment? crossAxisAlignment, Axis? direction, MainAxisSize? mainAxisSize, bool? isScroll, bool? isStack, BoxConstraints? constraints}) ModalWindowsOptions
merge([ModalWindowsOptions? options]) ModalWindowsOptions
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