SparkTheme constructor
const
SparkTheme({
- Color labelColor = _defaultFontColor,
- Color hitColor = _hitTextColor,
- double labelFontSize = _defaultFormItemFontSize,
- FontWeight labelFontWeight = FontWeight.w500,
- Color requiredColor = _errorOrRequiredColor,
- String requiredPrefix = '*',
- double formItemFontSize = _defaultFormItemFontSize,
- Color formItemColor = _defaultFormItemColor,
- Color formItemDisabledColor = _defaultFormItemDisabledColor,
- double labelWidth = _defaultLabelWidth,
- EdgeInsets labelPadding = EdgeInsets.zero,
- FocusDecoration formItemDecoration = _defaultFormDecoration,
- EdgeInsets formItemPadding = _defaultFormItemPadding,
- EdgeInsets formItemMargin = _defaultFormItemMargin,
- Size selectItemSize = _defaultSelectItemSize,
- SparkSelectDecoration selectedItemDecoration = _defaultSelectedDecoration,
- SparkSelectDecoration unSelectedItemDecoration = _defaultUnSelectedDecoration,
- Color errorColor = _errorOrRequiredColor,
- BoxDecoration tagItemDecoration = _defaultTagDecoration,
- BoxDecoration tagSelectedItemDecoration = _defaultTagSelectedDecoration,
- TextStyle tagStyle = _defaultTagItemStyle,
- TextStyle tagSelectedStyle = _defaultSelectedItemStyle,
- double tagMinWidth = _defaultTagWidth,
- Decoration tagAddDecoration = _defaultTagAddDecoration,
- EdgeInsets tagContentPadding = _defaultTagContentPadding,
- double hitFontSize = 12,
- Color labelTitleColor = _defaultFontColor,
- FontWeight labelTitleFontWeight = FontWeight.w400,
- 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,
});