AntdSeedToken class

theme

Constructors

AntdSeedToken.new({required int radius, required Color colorInfo, required Color colorLink, required Color colorPrimary, required Color colorSuccess, required Color colorWarning, required Color colorError, required Color colorText, required Color colorBgBase, required double fontSize, required double lineWidth, required int sizeStep, required int sizeUnit, AntdOpacityDefine opacityDefine = const AntdOpacityDefine(), TextStyle defaultTextStyle = const TextStyle(), required Size arrow})
const

Properties

arrow Size
组件箭头的尺寸
final
colorBgBase Color
基础的背景色,用来派生许多其他的颜色
final
colorError Color
用于表示操作失败的 Token 序列,如失败按钮、错误状态提示(Result)组件等。
final
colorInfo Color
用于表示操作信息的 Token 序列,如 Alert 、Tag、 Progress 等组件都有用到该组梯度变量。
final
控制超链接的颜色。
final
colorPrimary Color
品牌色是体现产品特性和传播理念最直观的视觉元素之一。 在你完成品牌主色的选取之后,我们会自动帮你生成一套完整的色板,并赋予它们有效的设计语义
final
colorSuccess Color
用于表示操作成功的 Token 序列,如 Result、Progress 等组件会使用该组梯度变量。
final
colorText Color
用于派生文本色梯度的基础变量
final
colorWarning Color
用于表示操作警告的 Token 序列, 如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该组梯度变量。
final
defaultTextStyle TextStyle
默认的文本样式
final
fontSize double
设计系统中使用最广泛的字体大小,文本梯度也将基于该字号进行派生。
final
hashCode int
The hash code for this object.
no setterinherited
lineWidth double
用于控制组件边框、分割线等的宽度
final
opacityDefine AntdOpacityDefine
用于派生颜色时使用的透明度,一般不需要动
final
radius int
基础组件的圆角大小,例如按钮、输入框、卡片等
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeStep int
用于控制组件尺寸的基础步长,尺寸步长结合尺寸变化单位, 就可以派生各种尺寸梯度。通过调整步长即可得到不同的布局模式
final
sizeUnit int
用于控制组件尺寸的变化单位, 在 Ant Design 中我们的基础单位为 4 ,便于更加细致地控制尺寸梯度
final

Methods

copyFrom(AntdSeedToken? other) AntdSeedToken
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