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. bool showTitle = DATETIME_PICKER_SHOW_TITLE_DEFAULT,
  8. double pickerHeight = DATETIME_PICKER_HEIGHT,
  9. double titleHeight = DATETIME_PICKER_TITLE_HEIGHT,
  10. double itemHeight = DATETIME_PICKER_ITEM_HEIGHT,
  11. TextStyle itemTextStyle = DATETIME_PICKER_ITEM_TEXT_STYLE,
  12. double? dividerHeight = DATETIME_PICKER_DIVIDER_HEIGHT,
  13. double? dividerThickness = DATETIME_PICKER_DIVIDER_THICKNESS,
  14. double? dividerSpacing,
  15. Color? dividerColor,
  16. double? squeeze = DATETIME_PICKER_SQUEEZE,
  17. double? diameterRatio = DATETIME_PICKER_DIAMETER_RATIO,
})

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. dividerHeight The value of DatePicker's Divider height. dividerThickness The value of DatePicker's Divider thickness. dividerSpacing The value of DatePicker's Divider spacing. dividerColor The value of DatePicker's Divider Color TextStyle. squeeze The value of DatePicker's squeeze. diameterRatio The value of DatePicker's diameter ratio.

Implementation

const DateTimePickerTheme({
  this.backgroundColor = DATETIME_PICKER_BACKGROUND_COLOR,
  this.cancelTextStyle,
  this.confirmTextStyle,
  this.cancel,
  this.confirm,
  this.title,
  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,
  this.dividerHeight = DATETIME_PICKER_DIVIDER_HEIGHT,
  this.dividerThickness = DATETIME_PICKER_DIVIDER_THICKNESS,
  this.dividerSpacing,
  this.dividerColor,
  this.squeeze = DATETIME_PICKER_SQUEEZE,
  this.diameterRatio = DATETIME_PICKER_DIAMETER_RATIO,
});