SparkTheme constructor

const SparkTheme({
  1. Color labelColor = _defaultFontColor,
  2. Color hitColor = _hitTextColor,
  3. double labelFontSize = _defaultFormItemFontSize,
  4. FontWeight labelFontWeight = FontWeight.w500,
  5. Color requiredColor = _errorOrRequiredColor,
  6. String requiredPrefix = '*',
  7. double formItemFontSize = _defaultFormItemFontSize,
  8. Color formItemColor = _defaultFormItemColor,
  9. Color formItemDisabledColor = _defaultFormItemDisabledColor,
  10. double labelWidth = _defaultLabelWidth,
  11. EdgeInsets labelPadding = EdgeInsets.zero,
  12. FocusDecoration formItemDecoration = _defaultFormDecoration,
  13. EdgeInsets formItemPadding = _defaultFormItemPadding,
  14. EdgeInsets formItemMargin = _defaultFormItemMargin,
  15. Size selectItemSize = _defaultSelectItemSize,
  16. SparkSelectDecoration selectedItemDecoration = _defaultSelectedDecoration,
  17. SparkSelectDecoration unSelectedItemDecoration = _defaultUnSelectedDecoration,
  18. Color errorColor = _errorOrRequiredColor,
  19. BoxDecoration tagItemDecoration = _defaultTagDecoration,
  20. BoxDecoration tagSelectedItemDecoration = _defaultTagSelectedDecoration,
  21. TextStyle tagStyle = _defaultTagItemStyle,
  22. TextStyle tagSelectedStyle = _defaultSelectedItemStyle,
  23. double tagMinWidth = _defaultTagWidth,
  24. Decoration tagAddDecoration = _defaultTagAddDecoration,
  25. EdgeInsets tagContentPadding = _defaultTagContentPadding,
  26. double hitFontSize = 12,
  27. Color labelTitleColor = _defaultFontColor,
  28. FontWeight labelTitleFontWeight = FontWeight.w400,
  29. double labelTitleFontSize = _defaultFormItemFontSize,
})

spark form theme default use in SparkForm

Implementation

const SparkTheme({
  this.labelColor = _defaultFontColor,
  this.hitColor = _hitTextColor,
  this.labelFontSize = _defaultFormItemFontSize,
  this.labelFontWeight = FontWeight.w500,
  this.requiredColor = _errorOrRequiredColor,
  this.requiredPrefix = '*',
  this.formItemFontSize = _defaultFormItemFontSize,
  this.formItemColor = _defaultFormItemColor,
  this.formItemDisabledColor = _defaultFormItemDisabledColor,
  this.labelWidth = _defaultLabelWidth,
  this.labelPadding = EdgeInsets.zero,
  this.formItemDecoration = _defaultFormDecoration,
  this.formItemPadding = _defaultFormItemPadding,
  this.formItemMargin = _defaultFormItemMargin,
  this.selectItemSize = _defaultSelectItemSize,
  this.selectedItemDecoration = _defaultSelectedDecoration,
  this.unSelectedItemDecoration = _defaultUnSelectedDecoration,
  this.errorColor = _errorOrRequiredColor,
  this.tagItemDecoration = _defaultTagDecoration,
  this.tagSelectedItemDecoration = _defaultTagSelectedDecoration,
  this.tagStyle = _defaultTagItemStyle,
  this.tagSelectedStyle = _defaultSelectedItemStyle,
  this.tagMinWidth = _defaultTagWidth,
  this.tagAddDecoration = _defaultTagAddDecoration,
  this.tagContentPadding = _defaultTagContentPadding,
  this.hitFontSize = 12,
  this.labelTitleColor = _defaultFontColor,
  this.labelTitleFontWeight = FontWeight.w400,
  this.labelTitleFontSize = _defaultFormItemFontSize,
});