DateTimePickerTheme constructor
- Color backgroundColor = DATETIME_PICKER_BACKGROUND_COLOR,
- TextStyle? cancelTextStyle,
- TextStyle? confirmTextStyle,
- Widget? cancel,
- Widget? confirm,
- Widget? title,
- 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,
- double? dividerHeight = DATETIME_PICKER_DIVIDER_HEIGHT,
- double? dividerThickness = DATETIME_PICKER_DIVIDER_THICKNESS,
- double? dividerSpacing,
- Color? dividerColor,
- double? squeeze = DATETIME_PICKER_SQUEEZE,
- 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,
});