TWidgetThemeExtension constructor

const TWidgetThemeExtension({
  1. MaterialColor primary = AppColors.primary,
  2. MaterialColor secondary = AppColors.secondary,
  3. MaterialColor success = AppColors.success,
  4. MaterialColor warning = AppColors.warning,
  5. MaterialColor info = AppColors.info,
  6. MaterialColor danger = AppColors.danger,
  7. MaterialColor grey = AppColors.grey,
  8. Color layoutFrame = AppColors.grey,
  9. TVariant chipType = TVariant.tonal,
  10. TVariant toastType = TVariant.outline,
  11. TVariant tooltipType = TVariant.tonal,
  12. required TButtonTheme buttonTheme,
  13. required TInputFieldTheme inputFieldTheme,
  14. required TTextFieldTheme textFieldTheme,
  15. required TTagsFieldTheme tagsFieldTheme,
  16. required TNumberFieldTheme numberFieldTheme,
  17. required TFilePickerTheme filePickerTheme,
  18. required TListTheme listTheme,
  19. required TTableTheme tableTheme,
  20. required TListCardTheme listCardTheme,
  21. required TAlertTheme alertTheme,
})

Implementation

const TWidgetThemeExtension({
  this.primary = AppColors.primary,
  this.secondary = AppColors.secondary,
  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.chipType = TVariant.tonal,
  this.toastType = TVariant.outline,
  this.tooltipType = TVariant.tonal,
  required this.buttonTheme,
  required this.inputFieldTheme,
  required this.textFieldTheme,
  required this.tagsFieldTheme,
  required this.numberFieldTheme,
  required this.filePickerTheme,
  required this.listTheme,
  required this.tableTheme,
  required this.listCardTheme,
  required this.alertTheme,
});