AntdFlexStyle class
Flex布局样式配置类(用于Row/Column等弹性布局) @l AntdFlex
- Inheritance
- Available extensions
Constructors
- AntdFlexStyle.new({MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, Clip clipBehavior = Clip.none, double spacing = 0.0, bool? expanded})
-
const
Properties
- clipBehavior → Clip
-
内容裁剪行为(默认none不裁剪)
final
- crossAxisAlignment → CrossAxisAlignment
-
交叉轴对齐方式(默认center居中)
final
- expanded → bool?
-
是否强制子元素扩展(覆盖mainAxisSize)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inherit → bool
-
是否继承样式,如果为false则不会向上合并其他的样式
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
主轴对齐方式(默认start)
final
- mainAxisSize → MainAxisSize
-
主轴尺寸占用方式(默认max占满可用空间)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
子元素间距(单位:逻辑像素,默认0)
final
- textBaseline → TextBaseline?
-
文本基线对齐方式(用于文字对齐)
final
- textDirection → TextDirection?
-
文本方向(影响水平布局)
final
- verticalDirection → VerticalDirection
-
垂直方向布局顺序(默认down从上到下)
final
Methods
-
copyFrom(
covariant AntdFlexStyle? style) → AntdFlexStyle -
复制并合并样式配置
override
-
merge(
T? other) → T? -
Available on T?, provided by the StyleExtensions extension
-
mergeActive(
T? defaultStyle, T? tdStyle, T? tdaStyle) → T? -
Available on T?, provided by the StyleExtensions 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.
inherited