AntdSizeDefine class

theme

Constructors

AntdSizeDefine.new({required int step, required int unit, required int seed, required int lg, required int md, required int ms, required int sm, required int xl, required int xs, required int xxl, required int xxs})
const
AntdSizeDefine.generate(int sizeUnit, int sizeStep)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
lg int
大尺寸: 2 * (4 + 2) = 12
final
md int
中尺寸: 2 * (4 + 1) = 10
final
ms int
默认尺寸: 2 * 4 = 8
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int
种子大小 来自step * unit
final
sm int
小尺寸: 2 * (4 - 1) = 6
final
step int
用于控制组件尺寸的基础步长,尺寸步长结合尺寸变化单位, 就可以派生各种尺寸梯度。通过调整步长即可得到不同的布局模式,
final
unit int
用于控制组件尺寸的变化单位, 在 Ant Design 中我们的基础单位为 4 ,便于更加细致地控制尺寸梯度
final
xl int
超大尺寸: 2 * (4 + 4) = 16
final
xs int
超小尺寸: 2 * (4 - 2) = 4
final
xxl int
特大尺寸: 2 * (4 + 8) = 24
final
xxs int
最小尺寸: 2 * (4 - 3) = 2
final

Methods

copyFrom(AntdSizeDefine? source) AntdSizeDefine
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