AntdMapToken class
theme
Constructors
- AntdMapToken.new({required AntdSizeDefine size, required AntdRadiusDefine radius, required AntdColorDefine colorInfo, required AntdColorDefine colorLink, required AntdColorDefine colorPrimary, required AntdColorDefine colorSuccess, required AntdColorDefine colorWarning, required AntdColorDefine colorError, required AntdTextColorDefine colorText, required AntdFontDefine font, required AntdFillColorDefine colorFill, required Color colorBgBlur, required Color colorBgContainer, required Color colorBgElevated, required Color colorBgLayout, required Color colorBgMask, required Color colorBgSolid, required Color colorBgSolidActive, required Color colorBgSpotlight, required BorderSide border, required BorderSide borderSecondary, required double lineWidth, required Color colorWhite, required Color colorTransparent, required Color colorBlack, FontWeight fontWeightStrong = FontWeight.w600, required AntdShadowDefine shadow})
-
const
Properties
- border → BorderSide
-
默认使用的边框, 用于分割不同的元素,例如:表单的分割线、卡片的分割线等。
final
- borderSecondary → BorderSide
-
比默认使用的边框色要浅一级,此颜色和 colorSplit 的颜色一致。使用的是实色。
final
- colorBgBlur → Color
-
控制毛玻璃容器的背景色,通常为透明色。
final
- colorBgContainer → Color
-
组件的容器背景色,例如:默认按钮、输入框等。务必不要将其与
colorBgElevated
混淆。final - colorBgElevated → Color
-
浮层容器背景色,
在暗色模式下该 token 的色值会比
colorBgContainer
要亮一些。final - colorBgLayout → Color
-
该色用于页面整体布局的背景色,
只有需要在页面中处于 B1 的视觉层级时才会使用该 token,其他用法都是错误的
final
- colorBgMask → Color
-
浮层的背景蒙层颜色,用于遮罩浮层下面的内容,Modal、Drawer 等组件的蒙层使用的是该 token
final
- colorBgSolid → Color
-
实心的背景颜色,目前只用在默认实心按钮背景色上。
final
- colorBgSolidActive → Color
-
实心的背景颜色激活态,目前只用在默认实心按钮的 active 效果。
final
- colorBgSpotlight → Color
-
该色用于引起用户强烈关注注意的背景色,目前只用在 Tooltip 的背景色上。
final
- colorBlack → Color
-
黑色 尽量不要使用 不会随主题动态变化 推荐优先使用 colorBgContainer
final
- colorError → AntdColorDefine
-
用于表示操作失败的 Token 序列,如失败按钮、错误状态提示(Result)组件等。
final
- colorFill → AntdFillColorDefine
-
填充色
final
- colorInfo → AntdColorDefine
-
用于表示操作信息的 Token 序列,如 Alert 、Tag、 Progress 等组件都有用到该组梯度变量。
final
- colorLink → AntdColorDefine
-
控制超链接的颜色。
final
- colorPrimary → AntdColorDefine
-
品牌色是体现产品特性和传播理念最直观的视觉元素之一。
在你完成品牌主色的选取之后,我们会自动帮你生成一套完整的色板,并赋予它们有效的设计语义
final
- colorSuccess → AntdColorDefine
-
用于表示操作成功的 Token 序列,如 Result、Progress 等组件会使用该组梯度变量。
final
- colorText → AntdTextColorDefine
-
文本色
final
- colorTransparent → Color
-
透明色
final
- colorWarning → AntdColorDefine
-
用于表示操作警告的 Token 序列,
如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该组梯度变量。
final
- colorWhite → Color
-
白色 尽量不要使用 不会随主题动态变化 推荐优先使用 colorBgContainer
final
- font → AntdFontDefine
-
字体
final
- fontWeightStrong → FontWeight
-
控制标题类组件选中项的字体粗细。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineWidth → double
-
用于控制组件边框、分割线等的宽度
final
- radius → AntdRadiusDefine
-
已经生成的圆角大小,例如按钮、输入框、卡片等
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadow → AntdShadowDefine
-
阴影
final
- size → AntdSizeDefine
-
大小
final
Methods
-
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