VThemeConfig constructor

const VThemeConfig({
  1. TextStyle? labelStyle,
  2. TextStyle? valueStyle,
  3. TextStyle? requiredStarStyle,
  4. IconThemeData? iconTheme,
  5. IconThemeData? arrowIconTheme,
  6. IconThemeData? clearIconTheme,
  7. IconThemeData? pwdEyeIconTheme,
  8. double? buttonHeight,
  9. double? buttonFontSize,
  10. double? buttonRadius,
  11. double? buttonPaddingH,
  12. double? cellHeight,
  13. double? cellTitleWidth,
  14. VTabBarStyle? tabBarStyle,
  15. double? smallRadius,
  16. double? mediumRadius,
  17. double? largeRadius,
  18. double? circularRadius,
  19. double? cardRadius,
  20. double? dialogRadius,
  21. double? spacingXS,
  22. double? spacingSM,
  23. double? spacingMD,
  24. double? spacingLG,
  25. double? spacingXL,
  26. Color? successColor,
  27. Color? errorColor,
  28. Color? warningColor,
  29. Color? infoColor,
  30. 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',
      );