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