ElBoxStyle class

Available extensions
Annotations
  • @ElModel.copy()

Constructors

ElBoxStyle({Clip? clipBehavior, double? width, double? height, BoxConstraints? constraints, EdgeInsets? margin, EdgeInsets? padding, Alignment? alignment, BoxDecoration? decoration, Matrix4? transform, AlignmentGeometry? transformAlignment, dynamic scale, Offset? translate})

Properties

alignment Alignment?
盒子元素的对齐方式
final
clipBehavior Clip?
对盒子应用裁剪
final
constraints BoxConstraints?
设置盒子最大、最小宽高
final
decoration BoxDecoration?
盒子装饰样式
final
hashCode int
The hash code for this object.
no setteroverride
height double?
强制盒子最大、最小高度
final
margin EdgeInsets?
盒子外边距
final
padding EdgeInsets?
盒子内边距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale → dynamic
应用缩放效果,这是 transform 的语法糖,支持以下写法:
final
toBoxConstraints BoxConstraints?
生成目标 BoxConstraints 约束对象
no setter
toMatrix4 Matrix4?
生成目标 Matrix4 对象,执行优先顺序为:transformscaletranslate
no setter
transform Matrix4?
对盒子应用变换矩阵
final
transformAlignment AlignmentGeometry?
如果指定了 transform,则原点相对于容器大小的对齐方式
final
translate Offset?
应用平移效果,这也是 transform 的语法糖
final
width double?
强制盒子最大、最小宽度
final

Methods

buildClipper(BuildContext context) CustomClipper<Path>
构建 decoration 绘制的裁剪路径对象
copyWith({Clip? clipBehavior, double? width, double? height, BoxConstraints? constraints, EdgeInsets? margin, EdgeInsets? padding, Alignment? alignment, BoxDecoration? decoration, Matrix4? transform, AlignmentGeometry? transformAlignment, dynamic scale, Offset? translate}) ElBoxStyle

Available on ElBoxStyle, provided by the ElBoxStyleExt extension

merge([ElBoxStyle? other]) ElBoxStyle

Available on ElBoxStyle, provided by the ElBoxStyleExt extension

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.
override