DateTimePickerTheme constructor
- Color backgroundColor = defaultPickerBackground,
- TextStyle? cancelTextStyle,
- TextStyle? confirmTextStyle,
- Widget? cancel,
- Widget? confirm,
- Widget? title,
- bool showTitle = showTitleDefaultValue,
- double pickerHeight = defaultPickerHeight,
- double titleHeight = defaultPickerTitleHeight,
- double itemHeight = defaultPickerItemHeight,
- TextStyle itemTextStyle = defaultItemTextStyle,
- double squeeze = defaultPickerSqueeze,
- double diameterRatio = defaultPickerDiameterRatio,
- DatePickerDividerTheme dividerTheme = DatePickerDividerTheme.defaultPickerDividersTheme,
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.
diameterRatio
Diameter ratio of the picker.
squeeze
Squeeze of the picker.
dividerTheme
Theme for horizonatal dividers.
Implementation
const DateTimePickerTheme({
this.backgroundColor = defaultPickerBackground,
this.cancelTextStyle,
this.confirmTextStyle,
this.cancel,
this.confirm,
this.title,
this.showTitle = showTitleDefaultValue,
this.pickerHeight = defaultPickerHeight,
this.titleHeight = defaultPickerTitleHeight,
this.itemHeight = defaultPickerItemHeight,
this.itemTextStyle = defaultItemTextStyle,
this.squeeze = defaultPickerSqueeze,
this.diameterRatio = defaultPickerDiameterRatio,
this.dividerTheme = DatePickerDividerTheme.defaultPickerDividersTheme,
});