TDThemeData class

主题数据

Inheritance
Available extensions

Constructors

TDThemeData({required String name, required Map<String, Color> colorMap, required Map<String, Font> fontMap, required Map<String, double> radiusMap, required Map<String, FontFamily> fontFamilyMap, required Map<String, List<BoxShadow>> shadowMap, required Map<String, double> spacerMap, TDExtraThemeData? extraThemeData})

Properties

brandClickColor Color

Available on TDThemeData, provided by the TDColors extension

#003CAB
no setter
brandColor1 Color

Available on TDThemeData, provided by the TDColors extension

功能色组---------------------------------------------------- #F2F3FF
no setter
brandColor10 Color

Available on TDThemeData, provided by the TDColors extension

#001A57
no setter
brandColor2 Color

Available on TDThemeData, provided by the TDColors extension

#D9E1FF
no setter
brandColor3 Color

Available on TDThemeData, provided by the TDColors extension

#B5C7FF
no setter
brandColor4 Color

Available on TDThemeData, provided by the TDColors extension

#8EABFF
no setter
brandColor5 Color

Available on TDThemeData, provided by the TDColors extension

#618DFF
no setter
brandColor6 Color

Available on TDThemeData, provided by the TDColors extension

#366EF4
no setter
brandColor7 Color

Available on TDThemeData, provided by the TDColors extension

#0052D9
no setter
brandColor8 Color

Available on TDThemeData, provided by the TDColors extension

#003CAB
no setter
brandColor9 Color

Available on TDThemeData, provided by the TDColors extension

#002A7C
no setter
brandDisabledColor Color

Available on TDThemeData, provided by the TDColors extension

#B5C7FF
no setter
brandFocusColor Color

Available on TDThemeData, provided by the TDColors extension

#D9E1FF
no setter
brandHoverColor Color

Available on TDThemeData, provided by the TDColors extension

#366EF4
no setter
brandLightColor Color

Available on TDThemeData, provided by the TDColors extension

#F2F3FF
no setter
brandNormalColor Color

Available on TDThemeData, provided by the TDColors extension

#0052D9
no setter
colorMap Map<String, Color>
颜色
getter/setter pair
errorClickColor Color

Available on TDThemeData, provided by the TDColors extension

#AD352F
no setter
errorColor1 Color

Available on TDThemeData, provided by the TDColors extension

错误色组---------------------------------------------------- #FFF0ED
no setter
errorColor10 Color

Available on TDThemeData, provided by the TDColors extension

#490002
no setter
errorColor2 Color

Available on TDThemeData, provided by the TDColors extension

#FFD8D2
no setter
errorColor3 Color

Available on TDThemeData, provided by the TDColors extension

#FFB9B0
no setter
errorColor4 Color

Available on TDThemeData, provided by the TDColors extension

#FF9285
no setter
errorColor5 Color

Available on TDThemeData, provided by the TDColors extension

#F6685D
no setter
errorColor6 Color

Available on TDThemeData, provided by the TDColors extension

#D54941
no setter
errorColor7 Color

Available on TDThemeData, provided by the TDColors extension

#AD352F
no setter
errorColor8 Color

Available on TDThemeData, provided by the TDColors extension

#881F1C
no setter
errorColor9 Color

Available on TDThemeData, provided by the TDColors extension

#68070A
no setter
errorDisabledColor Color

Available on TDThemeData, provided by the TDColors extension

#FFB9B0
no setter
errorFocusColor Color

Available on TDThemeData, provided by the TDColors extension

#FFD8D2
no setter
errorHoverColor Color

Available on TDThemeData, provided by the TDColors extension

#F6685D
no setter
errorLightColor Color

Available on TDThemeData, provided by the TDColors extension

#FFF0ED
no setter
errorNormalColor Color

Available on TDThemeData, provided by the TDColors extension

#D54941
no setter
extraThemeData TDExtraThemeData?
额外定义的结构
getter/setter pair
fontBodyExtraSmall Font?

Available on TDThemeData, provided by the TDFonts extension

10/16
no setter
fontBodyLarge Font?

Available on TDThemeData, provided by the TDFonts extension

16/24
no setter
fontBodyMedium Font?

Available on TDThemeData, provided by the TDFonts extension

14/22
no setter
fontBodySmall Font?

Available on TDThemeData, provided by the TDFonts extension

12/20
no setter
fontDisplayLarge Font?

Available on TDThemeData, provided by the TDFonts extension

字体大小/行高 64/72
no setter
fontDisplayMedium Font?

Available on TDThemeData, provided by the TDFonts extension

48/56
no setter
fontFamilyMap Map<String, FontFamily>
字体样式
getter/setter pair
fontGyColor1 Color

Available on TDThemeData, provided by the TDColors extension

文字色组---------------------------------------------------- #e6000000
no setter
fontGyColor2 Color

Available on TDThemeData, provided by the TDColors extension

#99000000
no setter
fontGyColor3 Color

Available on TDThemeData, provided by the TDColors extension

#66000000
no setter
fontGyColor4 Color

Available on TDThemeData, provided by the TDColors extension

#42000000
no setter
fontHeadlineLarge Font?

Available on TDThemeData, provided by the TDFonts extension

36/44
no setter
fontHeadlineMedium Font?

Available on TDThemeData, provided by the TDFonts extension

28/36
no setter
fontHeadlineSmall Font?

Available on TDThemeData, provided by the TDFonts extension

24/32
no setter
fontLinkLarge Font?

Available on TDThemeData, provided by the TDFonts extension

16/24
no setter
fontLinkMedium Font?

Available on TDThemeData, provided by the TDFonts extension

14/22
no setter
fontLinkSmall Font?

Available on TDThemeData, provided by the TDFonts extension

12/20
no setter
fontMap Map<String, Font>
字体尺寸
getter/setter pair
fontMarkExtraSmall Font?

Available on TDThemeData, provided by the TDFonts extension

10/16
no setter
fontMarkLarge Font?

Available on TDThemeData, provided by the TDFonts extension

16/24
no setter
fontMarkMedium Font?

Available on TDThemeData, provided by the TDFonts extension

14/22
no setter
fontMarkSmall Font?

Available on TDThemeData, provided by the TDFonts extension

12/20
no setter
fontTitleExtraLarge Font?

Available on TDThemeData, provided by the TDFonts extension

20/28
no setter
fontTitleLarge Font?

Available on TDThemeData, provided by the TDFonts extension

18/26
no setter
fontTitleMedium Font?

Available on TDThemeData, provided by the TDFonts extension

16/24
no setter
fontTitleSmall Font?

Available on TDThemeData, provided by the TDFonts extension

14/22
no setter
fontWhColor1 Color

Available on TDThemeData, provided by the TDColors extension

#ff000000
no setter
fontWhColor2 Color

Available on TDThemeData, provided by the TDColors extension

#8c000000
no setter
fontWhColor3 Color

Available on TDThemeData, provided by the TDColors extension

#59000000
no setter
fontWhColor4 Color

Available on TDThemeData, provided by the TDColors extension

#38000000
no setter
grayColor1 Color

Available on TDThemeData, provided by the TDColors extension

#F3F3F3
no setter
grayColor10 Color

Available on TDThemeData, provided by the TDColors extension

#4B4B4B
no setter
grayColor11 Color

Available on TDThemeData, provided by the TDColors extension

#383838
no setter
grayColor12 Color

Available on TDThemeData, provided by the TDColors extension

#2C2C2C
no setter
grayColor13 Color

Available on TDThemeData, provided by the TDColors extension

#242424
no setter
grayColor14 Color

Available on TDThemeData, provided by the TDColors extension

#181818
no setter
grayColor2 Color

Available on TDThemeData, provided by the TDColors extension

#EEEEEE
no setter
grayColor3 Color

Available on TDThemeData, provided by the TDColors extension

#E7E7E7
no setter
grayColor4 Color

Available on TDThemeData, provided by the TDColors extension

#DCDCDC
no setter
grayColor5 Color

Available on TDThemeData, provided by the TDColors extension

#C5C5C5
no setter
grayColor6 Color

Available on TDThemeData, provided by the TDColors extension

#A6A6A6
no setter
grayColor7 Color

Available on TDThemeData, provided by the TDColors extension

#8B8B8B
no setter
grayColor8 Color

Available on TDThemeData, provided by the TDColors extension

#777777
no setter
grayColor9 Color

Available on TDThemeData, provided by the TDColors extension

#5E5E5E
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
名称
getter/setter pair
numberFontFamily FontFamily?

Available on TDThemeData, provided by the TDFontFamilies extension

no setter
radiusCircle double

Available on TDThemeData, provided by the TDRadius extension

圆形与胶囊型一致,如果长款一致即是圆形
no setter
radiusDefault double

Available on TDThemeData, provided by the TDRadius extension

no setter
radiusExtraLarge double

Available on TDThemeData, provided by the TDRadius extension

no setter
radiusLarge double

Available on TDThemeData, provided by the TDRadius extension

no setter
radiusMap Map<String, double>
圆角
getter/setter pair
radiusRound double

Available on TDThemeData, provided by the TDRadius extension

胶囊型,数值设置较大
no setter
radiusSmall double

Available on TDThemeData, provided by the TDRadius extension

圆角数据
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowMap Map<String, List<BoxShadow>>
阴影
getter/setter pair
shadowsBase List<BoxShadow>?

Available on TDThemeData, provided by the TDBoxShadows extension

基础投影
no setter
shadowsMiddle List<BoxShadow>?

Available on TDThemeData, provided by the TDBoxShadows extension

中层投影
no setter
shadowsTop List<BoxShadow>?

Available on TDThemeData, provided by the TDBoxShadows extension

上层投影
no setter
spacer12 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer16 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer160 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer24 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer32 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer4 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer40 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer48 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer64 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer8 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacer96 double

Available on TDThemeData, provided by the TDSpacers extension

no setter
spacerMap Map<String, double>
间隔
getter/setter pair
successClickColor Color

Available on TDThemeData, provided by the TDColors extension

#008858
no setter
successColor1 Color

Available on TDThemeData, provided by the TDColors extension

成功色组---------------------------------------------------- #E3F9E9
no setter
successColor10 Color

Available on TDThemeData, provided by the TDColors extension

#002515
no setter
successColor2 Color

Available on TDThemeData, provided by the TDColors extension

#C6F3D7
no setter
successColor3 Color

Available on TDThemeData, provided by the TDColors extension

#92DAB2
no setter
successColor4 Color

Available on TDThemeData, provided by the TDColors extension

#56C08D
no setter
successColor5 Color

Available on TDThemeData, provided by the TDColors extension

#2BA471
no setter
successColor6 Color

Available on TDThemeData, provided by the TDColors extension

#008858
no setter
successColor7 Color

Available on TDThemeData, provided by the TDColors extension

#006C45
no setter
successColor8 Color

Available on TDThemeData, provided by the TDColors extension

#005334
no setter
successColor9 Color

Available on TDThemeData, provided by the TDColors extension

#003B23
no setter
successDisabledColor Color

Available on TDThemeData, provided by the TDColors extension

#92DAB2
no setter
successFocusColor Color

Available on TDThemeData, provided by the TDColors extension

#C6F3D7
no setter
successHoverColor Color

Available on TDThemeData, provided by the TDColors extension

#56C08D
no setter
successLightColor Color

Available on TDThemeData, provided by the TDColors extension

#E3F9E9
no setter
successNormalColor Color

Available on TDThemeData, provided by the TDColors extension

#2BA471
no setter
type Object
The extension's type.
no setterinherited
warningClickColor Color

Available on TDThemeData, provided by the TDColors extension

#BE5A00
no setter
warningColor1 Color

Available on TDThemeData, provided by the TDColors extension

警告色组---------------------------------------------------- #FFF1E9
no setter
warningColor10 Color

Available on TDThemeData, provided by the TDColors extension

#3B1700
no setter
warningColor2 Color

Available on TDThemeData, provided by the TDColors extension

#FFD9C2
no setter
warningColor3 Color

Available on TDThemeData, provided by the TDColors extension

#FFB98C
no setter
warningColor4 Color

Available on TDThemeData, provided by the TDColors extension

#FA9550
no setter
warningColor5 Color

Available on TDThemeData, provided by the TDColors extension

#E37318
no setter
warningColor6 Color

Available on TDThemeData, provided by the TDColors extension

#BE5A00
no setter
warningColor7 Color

Available on TDThemeData, provided by the TDColors extension

#954500
no setter
warningColor8 Color

Available on TDThemeData, provided by the TDColors extension

#713300
no setter
warningColor9 Color

Available on TDThemeData, provided by the TDColors extension

#532300
no setter
warningDisabledColor Color

Available on TDThemeData, provided by the TDColors extension

#FFB98C
no setter
warningFocusColor Color

Available on TDThemeData, provided by the TDColors extension

#FFD9C2
no setter
warningHoverColor Color

Available on TDThemeData, provided by the TDColors extension

#FA9550
no setter
warningLightColor Color

Available on TDThemeData, provided by the TDColors extension

#FFF1E9
no setter
warningNormalColor Color

Available on TDThemeData, provided by the TDColors extension

#E37318
no setter
whiteColor1 Color

Available on TDThemeData, provided by the TDColors extension

中性面板色组---------------------------------------------------- #FFFFFF
no setter

Methods

copyWith({String? name, Map<String, Color>? colorMap, Map<String, Font>? fontMap, Map<String, double>? radiusMap, Map<String, FontFamily>? fontFamilyMap, Map<String, List<BoxShadow>>? shadowMap, Map<String, double>? marginMap, TDExtraThemeData? extraThemeData}) ThemeExtension<TDThemeData>
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
copyWithTDThemeData(String name, {Map<String, Color>? colorMap, Map<String, Font>? fontMap, Map<String, double>? radiusMap, Map<String, FontFamily>? fontFamilyMap, Map<String, List<BoxShadow>>? shadowMap, Map<String, double>? marginMap, TDExtraThemeData? extraThemeData}) TDThemeData
从父类拷贝
lerp(covariant ThemeExtension<TDThemeData>? other, double t) ThemeExtension<TDThemeData>
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofColor(String? key) Color?
ofCorner(String? key) double?
ofExtra<T extends TDExtraThemeData>() → T?
ofFont(String? key) Font?
ofFontFamily(String? key) FontFamily?
ofShadow(String? key) List<BoxShadow>?
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultData({TDExtraThemeData? extraThemeData}) TDThemeData
获取默认Data,一个App里只有一个,用于没有context的地方
fromJson(String name, String themeJson, {dynamic recoverDefault = false, TDExtraThemeData? extraThemeData}) TDThemeData?
解析配置的json文件为主题数据