DateTimePickerTheme constructor

const DateTimePickerTheme({
  1. Color backgroundColor = DATETIME_PICKER_BACKGROUND_COLOR,
  2. TextStyle? cancelTextStyle,
  3. TextStyle? confirmTextStyle,
  4. Widget? cancel,
  5. Widget? confirm,
  6. Widget? title,
  7. Widget? selectionOverlay,
  8. bool showTitle = DATETIME_PICKER_SHOW_TITLE_DEFAULT,
  9. double pickerHeight = DATETIME_PICKER_HEIGHT,
  10. double titleHeight = DATETIME_PICKER_TITLE_HEIGHT,
  11. double itemHeight = DATETIME_PICKER_ITEM_HEIGHT,
  12. TextStyle itemTextStyle = DATETIME_PICKER_ITEM_TEXT_STYLE,
})

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. title 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: DATETIME_PICKER_BACKGROUND_COLOR,
  this.cancelTextStyle,
  this.confirmTextStyle,
  this.cancel,
  this.confirm,
  this.title,
  this.selectionOverlay,
  this.showTitle: DATETIME_PICKER_SHOW_TITLE_DEFAULT,
  this.pickerHeight: DATETIME_PICKER_HEIGHT,
  this.titleHeight: DATETIME_PICKER_TITLE_HEIGHT,
  this.itemHeight: DATETIME_PICKER_ITEM_HEIGHT,
  this.itemTextStyle: DATETIME_PICKER_ITEM_TEXT_STYLE,
});