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. WidgetStateProperty<Color?>? dayForegroundColor,
  13. WidgetStateProperty<Color?>? dayBackgroundColor,
  14. WidgetStateProperty<Color?>? dayOverlayColor,
  15. WidgetStateProperty<OutlinedBorder?>? dayShape,
  16. WidgetStateProperty<Color?>? todayForegroundColor,
  17. WidgetStateProperty<Color?>? todayBackgroundColor,
  18. BorderSide? todayBorder,
  19. TextStyle? yearStyle,
  20. WidgetStateProperty<Color?>? yearForegroundColor,
  21. WidgetStateProperty<Color?>? yearBackgroundColor,
  22. WidgetStateProperty<Color?>? yearOverlayColor,
  23. WidgetStateProperty<OutlinedBorder?>? yearShape,
  24. Color? rangePickerBackgroundColor,
  25. double? rangePickerElevation,
  26. Color? rangePickerShadowColor,
  27. Color? rangePickerSurfaceTintColor,
  28. ShapeBorder? rangePickerShape,
  29. Color? rangePickerHeaderBackgroundColor,
  30. Color? rangePickerHeaderForegroundColor,
  31. TextStyle? rangePickerHeaderHeadlineStyle,
  32. TextStyle? rangePickerHeaderHelpStyle,
  33. Color? rangeSelectionBackgroundColor,
  34. WidgetStateProperty<Color?>? rangeSelectionOverlayColor,
  35. Color? dividerColor,
  36. InputDecorationTheme? inputDecorationTheme,
  37. ButtonStyle? cancelButtonStyle,
  38. ButtonStyle? confirmButtonStyle,
  39. Locale? locale,
})

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.dayShape,
  this.todayForegroundColor,
  this.todayBackgroundColor,
  this.todayBorder,
  this.yearStyle,
  this.yearForegroundColor,
  this.yearBackgroundColor,
  this.yearOverlayColor,
  this.yearShape,
  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,
  this.locale,
});