DateTimePickerTheme constructor
- Color backgroundColor = DATETIME_PICKER_BACKGROUND_COLOR,
- TextStyle? cancelTextStyle,
- TextStyle? confirmTextStyle,
- Widget? cancel,
- Widget? confirm,
- Widget? title,
- Widget? selectionOverlay,
- bool showTitle = DATETIME_PICKER_SHOW_TITLE_DEFAULT,
- double pickerHeight = DATETIME_PICKER_HEIGHT,
- double titleHeight = DATETIME_PICKER_TITLE_HEIGHT,
- double itemHeight = DATETIME_PICKER_ITEM_HEIGHT,
- 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,
});