CustomDatePickerThemeData constructor

const CustomDatePickerThemeData({
  1. required Color ink,
  2. required Color muted,
  3. required Color accent,
  4. required Color onAccent,
  5. required Color sheet,
  6. required Color highlight,
  7. required Color line,
  8. required Color fieldFill,
  9. required Color error,
  10. required double radius,
  11. Color? confirmBackground,
  12. Color? confirmForeground,
  13. Color? cancelBackground,
  14. Color? cancelForeground,
  15. Color? cancelBorder,
  16. Color? todayForeground,
  17. Color? disabledButton,
  18. Color? selectedDay,
  19. Color? selectedDayText,
  20. Color? iconColor,
  21. double buttonHeight = 48,
  22. double buttonRadius = 14,
  23. double buttonFontSize = 14,
  24. double buttonGap = 12,
  25. EdgeInsetsGeometry buttonPadding = EdgeInsets.zero,
  26. TextStyle? buttonTextStyle,
  27. ButtonStyle? confirmButtonStyle,
  28. ButtonStyle? cancelButtonStyle,
  29. ButtonStyle? todayButtonStyle,
  30. String confirmText = 'Confirm',
  31. String cancelText = 'Cancel',
  32. String todayText = 'Today',
  33. String nowText = 'Now',
  34. double sheetRadius = 28,
  35. EdgeInsetsGeometry sheetMargin = const EdgeInsets.fromLTRB(12, 0, 12, 12),
  36. EdgeInsetsGeometry sheetPadding = const EdgeInsets.fromLTRB(20, 10, 20, 16),
  37. EdgeInsetsGeometry fieldPadding = const EdgeInsets.fromLTRB(14, 12, 8, 12),
  38. EdgeInsetsGeometry fieldContentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
  39. double borderWidth = 1,
  40. double labelFontSize = 14,
  41. double valueFontSize = 20,
  42. double captionFontSize = 11,
  43. double previewFontSize = 28,
  44. double rangePreviewFontSize = 22,
  45. double subtitleFontSize = 13,
  46. double errorFontSize = 12,
  47. double weekdayFontSize = 12,
  48. double monthTitleFontSize = 16,
  49. double dayFontSize = 14,
  50. double wheelFontSize = 16,
  51. double wheelSelectedFontSize = 18,
  52. TextStyle? labelTextStyle,
  53. TextStyle? valueTextStyle,
  54. TextStyle? captionTextStyle,
  55. TextStyle? previewTextStyle,
  56. TextStyle? errorTextStyle,
  57. double dayCellSize = 32,
  58. double dayGridExtent = 40,
  59. double wheelHeight = 196,
  60. double wheelItemExtent = 44,
  61. double iconSize = 24,
  62. double clearIconSize = 18,
})

Implementation

const CustomDatePickerThemeData({
  required this.ink,
  required this.muted,
  required this.accent,
  required this.onAccent,
  required this.sheet,
  required this.highlight,
  required this.line,
  required this.fieldFill,
  required this.error,
  required this.radius,
  this.confirmBackground,
  this.confirmForeground,
  this.cancelBackground,
  this.cancelForeground,
  this.cancelBorder,
  this.todayForeground,
  this.disabledButton,
  this.selectedDay,
  this.selectedDayText,
  this.iconColor,
  this.buttonHeight = 48,
  this.buttonRadius = 14,
  this.buttonFontSize = 14,
  this.buttonGap = 12,
  this.buttonPadding = EdgeInsets.zero,
  this.buttonTextStyle,
  this.confirmButtonStyle,
  this.cancelButtonStyle,
  this.todayButtonStyle,
  this.confirmText = 'Confirm',
  this.cancelText = 'Cancel',
  this.todayText = 'Today',
  this.nowText = 'Now',
  this.sheetRadius = 28,
  this.sheetMargin = const EdgeInsets.fromLTRB(12, 0, 12, 12),
  this.sheetPadding = const EdgeInsets.fromLTRB(20, 10, 20, 16),
  this.fieldPadding = const EdgeInsets.fromLTRB(14, 12, 8, 12),
  this.fieldContentPadding = const EdgeInsets.symmetric(
    horizontal: 16,
    vertical: 14,
  ),
  this.borderWidth = 1,
  this.labelFontSize = 14,
  this.valueFontSize = 20,
  this.captionFontSize = 11,
  this.previewFontSize = 28,
  this.rangePreviewFontSize = 22,
  this.subtitleFontSize = 13,
  this.errorFontSize = 12,
  this.weekdayFontSize = 12,
  this.monthTitleFontSize = 16,
  this.dayFontSize = 14,
  this.wheelFontSize = 16,
  this.wheelSelectedFontSize = 18,
  this.labelTextStyle,
  this.valueTextStyle,
  this.captionTextStyle,
  this.previewTextStyle,
  this.errorTextStyle,
  this.dayCellSize = 32,
  this.dayGridExtent = 40,
  this.wheelHeight = 196,
  this.wheelItemExtent = 44,
  this.iconSize = 24,
  this.clearIconSize = 18,
});