DatePickerThemeData constructor

const DatePickerThemeData(
  1. {Color? backgroundColor,
  2. double? elevation,
  3. Color? shadowColor,
  4. Color? surfaceTintColor,
  5. ShapeBorder? shape,
  6. Color? headerBackgroundColor,
  7. Color? headerForegroundColor,
  8. TextStyle? headerHeadlineStyle,
  9. TextStyle? headerHelpStyle,
  10. TextStyle? weekdayStyle,
  11. TextStyle? dayStyle,
  12. MaterialStateProperty<Color?>? dayForegroundColor,
  13. MaterialStateProperty<Color?>? dayBackgroundColor,
  14. MaterialStateProperty<Color?>? dayOverlayColor,
  15. MaterialStateProperty<Color?>? todayForegroundColor,
  16. MaterialStateProperty<Color?>? todayBackgroundColor,
  17. BorderSide? todayBorder,
  18. TextStyle? yearStyle,
  19. MaterialStateProperty<Color?>? yearForegroundColor,
  20. MaterialStateProperty<Color?>? yearBackgroundColor,
  21. MaterialStateProperty<Color?>? yearOverlayColor,
  22. Color? rangePickerBackgroundColor,
  23. double? rangePickerElevation,
  24. Color? rangePickerShadowColor,
  25. Color? rangePickerSurfaceTintColor,
  26. ShapeBorder? rangePickerShape,
  27. Color? rangePickerHeaderBackgroundColor,
  28. Color? rangePickerHeaderForegroundColor,
  29. TextStyle? rangePickerHeaderHeadlineStyle,
  30. TextStyle? rangePickerHeaderHelpStyle,
  31. Color? rangeSelectionBackgroundColor,
  32. MaterialStateProperty<Color?>? rangeSelectionOverlayColor,
  33. Color? dividerColor,
  34. InputDecorationTheme? inputDecorationTheme,
  35. ButtonStyle? cancelButtonStyle,
  36. ButtonStyle? confirmButtonStyle}
)

Creates a DatePickerThemeData that can be used to override default properties in a DatePickerTheme widget.

Implementation

const DatePickerThemeData({
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.shape,
  this.headerBackgroundColor,
  this.headerForegroundColor,
  this.headerHeadlineStyle,
  this.headerHelpStyle,
  this.weekdayStyle,
  this.dayStyle,
  this.dayForegroundColor,
  this.dayBackgroundColor,
  this.dayOverlayColor,
  this.todayForegroundColor,
  this.todayBackgroundColor,
  this.todayBorder,
  this.yearStyle,
  this.yearForegroundColor,
  this.yearBackgroundColor,
  this.yearOverlayColor,
  this.rangePickerBackgroundColor,
  this.rangePickerElevation,
  this.rangePickerShadowColor,
  this.rangePickerSurfaceTintColor,
  this.rangePickerShape,
  this.rangePickerHeaderBackgroundColor,
  this.rangePickerHeaderForegroundColor,
  this.rangePickerHeaderHeadlineStyle,
  this.rangePickerHeaderHelpStyle,
  this.rangeSelectionBackgroundColor,
  this.rangeSelectionOverlayColor,
  this.dividerColor,
  this.inputDecorationTheme,
  this.cancelButtonStyle,
  this.confirmButtonStyle,
});