VThemeConfig constructor
const
VThemeConfig({
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- TextStyle? requiredStarStyle,
- IconThemeData? iconTheme,
- IconThemeData? arrowIconTheme,
- IconThemeData? clearIconTheme,
- IconThemeData? pwdEyeIconTheme,
- double? buttonHeight,
- double? buttonFontSize,
- double? buttonRadius,
- double? buttonPaddingH,
- double? cellHeight,
- double? cellTitleWidth,
- VTabBarStyle? tabBarStyle,
- double? smallRadius,
- double? mediumRadius,
- double? largeRadius,
- double? circularRadius,
- double? cardRadius,
- double? dialogRadius,
- double? spacingXS,
- double? spacingSM,
- double? spacingMD,
- double? spacingLG,
- double? spacingXL,
- Color? successColor,
- Color? errorColor,
- Color? warningColor,
- Color? infoColor,
- Color? linkColor,
Implementation
const VThemeConfig({
// this.inputCursorColor,
// this.hintStyle,
this.labelStyle,
this.valueStyle,
this.requiredStarStyle,
this.iconTheme,
this.arrowIconTheme,
this.clearIconTheme,
this.pwdEyeIconTheme,
this.buttonHeight,
this.buttonFontSize,
this.buttonRadius,
this.buttonPaddingH,
this.cellHeight,
this.cellTitleWidth,
this.tabBarStyle,
this.smallRadius,
this.mediumRadius,
this.largeRadius,
this.circularRadius,
this.cardRadius,
this.dialogRadius,
this.spacingXS,
this.spacingSM,
this.spacingMD,
this.spacingLG,
this.spacingXL,
this.successColor,
this.errorColor,
this.warningColor,
this.infoColor,
this.linkColor,
}) : assert(
smallRadius == null ||
mediumRadius == null ||
smallRadius <= mediumRadius,
'smallRadius 必须 <= mediumRadius',
),
assert(
mediumRadius == null ||
largeRadius == null ||
mediumRadius <= largeRadius,
'mediumRadius 必须 <= largeRadius',
),
assert(
spacingXS == null ||
spacingSM == null ||
spacingXS < spacingSM,
'间距必须递增:spacingXS < spacingSM',
),
assert(
spacingSM == null ||
spacingMD == null ||
spacingSM < spacingMD,
'间距必须递增:spacingSM < spacingMD',
),
assert(
spacingMD == null ||
spacingLG == null ||
spacingMD < spacingLG,
'间距必须递增:spacingMD < spacingLG',
),
assert(
spacingLG == null ||
spacingXL == null ||
spacingLG < spacingXL,
'间距必须递增:spacingLG < spacingXL',
);