TWidgetThemeExtension constructor
const
TWidgetThemeExtension({
- MaterialColor primary = AppColors.primary,
- MaterialColor success = AppColors.success,
- MaterialColor warning = AppColors.warning,
- MaterialColor info = AppColors.info,
- MaterialColor danger = AppColors.danger,
- MaterialColor grey = AppColors.grey,
- Color layoutFrame = AppColors.grey,
- TButtonType buttonType = TButtonType.solid,
- TVariant chipType = TVariant.tonal,
- TVariant toastType = TVariant.outline,
- TVariant tooltipType = TVariant.tonal,
- TInputFieldTheme inputFieldTheme = const TInputFieldTheme(),
- TTextFieldTheme textFieldTheme = const TTextFieldTheme(),
- TTagsFieldTheme tagsFieldTheme = const TTagsFieldTheme(),
- TNumberFieldTheme numberFieldTheme = const TNumberFieldTheme(),
- TFilePickerTheme filePickerTheme = const TFilePickerTheme(),
Implementation
const TWidgetThemeExtension({
this.primary = AppColors.primary,
this.success = AppColors.success,
this.warning = AppColors.warning,
this.info = AppColors.info,
this.danger = AppColors.danger,
this.grey = AppColors.grey,
this.layoutFrame = AppColors.grey,
this.buttonType = TButtonType.solid,
this.chipType = TVariant.tonal,
this.toastType = TVariant.outline,
this.tooltipType = TVariant.tonal,
this.inputFieldTheme = const TInputFieldTheme(),
this.textFieldTheme = const TTextFieldTheme(),
this.tagsFieldTheme = const TTagsFieldTheme(),
this.numberFieldTheme = const TNumberFieldTheme(),
this.filePickerTheme = const TFilePickerTheme(),
});