TDThemeData class
主题数据
- Inheritance
-
- Object
- ThemeExtension<
TDThemeData> - TDThemeData
- 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< shadowMap, required Map<BoxShadow> >String, double> spacerMap, TDExtraThemeData? extraThemeData})
Properties
- brandClickColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#003CABno setter - brandColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
功能色组---------------------------------------------------- #F2F3FFno setter - brandColor10 → Color
-
Available on TDThemeData, provided by the TDColors extension
#001A57no setter - brandColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#D9E1FFno setter - brandColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#B5C7FFno setter - brandColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#8EABFFno setter - brandColor5 → Color
-
Available on TDThemeData, provided by the TDColors extension
#618DFFno setter - brandColor6 → Color
-
Available on TDThemeData, provided by the TDColors extension
#366EF4no setter - brandColor7 → Color
-
Available on TDThemeData, provided by the TDColors extension
#0052D9no setter - brandColor8 → Color
-
Available on TDThemeData, provided by the TDColors extension
#003CABno setter - brandColor9 → Color
-
Available on TDThemeData, provided by the TDColors extension
#002A7Cno setter - brandDisabledColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#B5C7FFno setter - brandFocusColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#D9E1FFno setter - brandHoverColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#366EF4no setter - brandLightColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#F2F3FFno setter - brandNormalColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#0052D9no setter -
colorMap
↔ Map<
String, Color> -
颜色
getter/setter pair
- errorClickColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#AD352Fno setter - errorColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
错误色组---------------------------------------------------- #FFF0EDno setter - errorColor10 → Color
-
Available on TDThemeData, provided by the TDColors extension
#490002no setter - errorColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFD8D2no setter - errorColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFB9B0no setter - errorColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FF9285no setter - errorColor5 → Color
-
Available on TDThemeData, provided by the TDColors extension
#F6685Dno setter - errorColor6 → Color
-
Available on TDThemeData, provided by the TDColors extension
#D54941no setter - errorColor7 → Color
-
Available on TDThemeData, provided by the TDColors extension
#AD352Fno setter - errorColor8 → Color
-
Available on TDThemeData, provided by the TDColors extension
#881F1Cno setter - errorColor9 → Color
-
Available on TDThemeData, provided by the TDColors extension
#68070Ano setter - errorDisabledColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFB9B0no setter - errorFocusColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFD8D2no setter - errorHoverColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#F6685Dno setter - errorLightColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFF0EDno setter - errorNormalColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#D54941no setter - extraThemeData ↔ TDExtraThemeData?
-
额外定义的结构
getter/setter pair
- fontBodyExtraSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
10/16no setter - fontBodyLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
16/24no setter - fontBodyMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
14/22no setter - fontBodySmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
12/20no setter - fontDisplayLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
字体大小/行高 64/72no setter - fontDisplayMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
48/56no setter -
fontFamilyMap
↔ Map<
String, FontFamily> -
字体样式
getter/setter pair
- fontGyColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
文字色组---------------------------------------------------- #e6000000no setter - fontGyColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#99000000no setter - fontGyColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#66000000no setter - fontGyColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#42000000no setter - fontHeadlineLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
36/44no setter - fontHeadlineMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
28/36no setter - fontHeadlineSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
24/32no setter - fontLinkLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
16/24no setter - fontLinkMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
14/22no setter - fontLinkSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
12/20no setter -
fontMap
↔ Map<
String, Font> -
字体尺寸
getter/setter pair
- fontMarkExtraSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
10/16no setter - fontMarkLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
16/24no setter - fontMarkMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
14/22no setter - fontMarkSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
12/20no setter - fontTitleExtraLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
20/28no setter - fontTitleLarge → Font?
-
Available on TDThemeData, provided by the TDFonts extension
18/26no setter - fontTitleMedium → Font?
-
Available on TDThemeData, provided by the TDFonts extension
16/24no setter - fontTitleSmall → Font?
-
Available on TDThemeData, provided by the TDFonts extension
14/22no setter - fontWhColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
#ff000000no setter - fontWhColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#8c000000no setter - fontWhColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#59000000no setter - fontWhColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#38000000no setter - grayColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
#F3F3F3no setter - grayColor10 → Color
-
Available on TDThemeData, provided by the TDColors extension
#4B4B4Bno setter - grayColor11 → Color
-
Available on TDThemeData, provided by the TDColors extension
#383838no setter - grayColor12 → Color
-
Available on TDThemeData, provided by the TDColors extension
#2C2C2Cno setter - grayColor13 → Color
-
Available on TDThemeData, provided by the TDColors extension
#242424no setter - grayColor14 → Color
-
Available on TDThemeData, provided by the TDColors extension
#181818no setter - grayColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#EEEEEEno setter - grayColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#E7E7E7no setter - grayColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#DCDCDCno setter - grayColor5 → Color
-
Available on TDThemeData, provided by the TDColors extension
#C5C5C5no setter - grayColor6 → Color
-
Available on TDThemeData, provided by the TDColors extension
#A6A6A6no setter - grayColor7 → Color
-
Available on TDThemeData, provided by the TDColors extension
#8B8B8Bno setter - grayColor8 → Color
-
Available on TDThemeData, provided by the TDColors extension
#777777no setter - grayColor9 → Color
-
Available on TDThemeData, provided by the TDColors extension
#5E5E5Eno 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
#008858no setter - successColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
成功色组---------------------------------------------------- #E3F9E9no setter - successColor10 → Color
-
Available on TDThemeData, provided by the TDColors extension
#002515no setter - successColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#C6F3D7no setter - successColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#92DAB2no setter - successColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#56C08Dno setter - successColor5 → Color
-
Available on TDThemeData, provided by the TDColors extension
#2BA471no setter - successColor6 → Color
-
Available on TDThemeData, provided by the TDColors extension
#008858no setter - successColor7 → Color
-
Available on TDThemeData, provided by the TDColors extension
#006C45no setter - successColor8 → Color
-
Available on TDThemeData, provided by the TDColors extension
#005334no setter - successColor9 → Color
-
Available on TDThemeData, provided by the TDColors extension
#003B23no setter - successDisabledColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#92DAB2no setter - successFocusColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#C6F3D7no setter - successHoverColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#56C08Dno setter - successLightColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#E3F9E9no setter - successNormalColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#2BA471no setter - type → Object
-
The extension's type.
no setterinherited
- warningClickColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#BE5A00no setter - warningColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
警告色组---------------------------------------------------- #FFF1E9no setter - warningColor10 → Color
-
Available on TDThemeData, provided by the TDColors extension
#3B1700no setter - warningColor2 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFD9C2no setter - warningColor3 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFB98Cno setter - warningColor4 → Color
-
Available on TDThemeData, provided by the TDColors extension
#FA9550no setter - warningColor5 → Color
-
Available on TDThemeData, provided by the TDColors extension
#E37318no setter - warningColor6 → Color
-
Available on TDThemeData, provided by the TDColors extension
#BE5A00no setter - warningColor7 → Color
-
Available on TDThemeData, provided by the TDColors extension
#954500no setter - warningColor8 → Color
-
Available on TDThemeData, provided by the TDColors extension
#713300no setter - warningColor9 → Color
-
Available on TDThemeData, provided by the TDColors extension
#532300no setter - warningDisabledColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFB98Cno setter - warningFocusColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFD9C2no setter - warningHoverColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FA9550no setter - warningLightColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#FFF1E9no setter - warningNormalColor → Color
-
Available on TDThemeData, provided by the TDColors extension
#E37318no setter - whiteColor1 → Color
-
Available on TDThemeData, provided by the TDColors extension
中性面板色组---------------------------------------------------- #FFFFFFno setter
Methods
-
copyWith(
{String? name, Map< String, Color> ? colorMap, Map<String, Font> ? fontMap, Map<String, double> ? radiusMap, Map<String, FontFamily> ? fontFamilyMap, Map<String, List< ? shadowMap, Map<BoxShadow> >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< ? shadowMap, Map<BoxShadow> >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文件为主题数据