DateTimePickerTheme constructor

const DateTimePickerTheme({
  1. Color backgroundColor = dateTimePickerBackgroundColor,
  2. TextStyle? cancelTextStyle,
  3. TextStyle? titleTextStyle,
  4. TextStyle? confirmTextStyle,
  5. Widget? cancel,
  6. Widget? confirm,
  7. Widget? headerWidget,
  8. String title = '',
  9. Widget? selectionOverlay,
  10. Color selectionOverlayColor = dateTimePickerSelectionOverlayColor,
  11. bool showTitle = dateTimePickerShowTitleDefault,
  12. double pickerHeight = dateTimePickerHeight,
  13. double titleHeight = dateTimePickerTitleHeight,
  14. double itemHeight = dateTimePickerItemHeight,
  15. TextStyle itemTextStyle = dateTimePickerItemTextStyle,
})

DateTimePicker theme.

backgroundColor DatePicker's background color. cancelTextStyle Default cancel widget's TextStyle. confirmTextStyle Default confirm widget's TextStyle. cancel Custom cancel widget. confirm Custom confirm widget. headerWidget Custom title widget. If specify a title widget, the cancel and confirm widgets will not display. Must set titleHeight value for custom title widget. showTitle Whether display title widget or not. If set false, the default cancel and confirm widgets will not display, but the custom title widget will display if had specified one custom title widget. pickerHeight The value of DatePicker's height. titleHeight The value of DatePicker's title height. itemHeight The value of DatePicker's column height. itemTextStyle The value of DatePicker's column TextStyle.

Implementation

const DateTimePickerTheme({
  this.backgroundColor = dateTimePickerBackgroundColor,
  this.cancelTextStyle,
  this.titleTextStyle,
  this.confirmTextStyle,
  this.cancel,
  this.confirm,
  this.headerWidget,
  this.title = '',
  this.selectionOverlay,
  this.selectionOverlayColor = dateTimePickerSelectionOverlayColor,
  this.showTitle = dateTimePickerShowTitleDefault,
  this.pickerHeight = dateTimePickerHeight,
  this.titleHeight = dateTimePickerTitleHeight,
  this.itemHeight = dateTimePickerItemHeight,
  this.itemTextStyle = dateTimePickerItemTextStyle,
});