DDSTimePicker constructor
const
DDSTimePicker({
- Key? key,
- required TimeOfDay initialTime,
- DateTime? initialDate,
- String title = 'Select Time',
- String cancelButtonText = 'Cancel',
- String okButtonText = 'OK',
- TimePickerVariant variant = TimePickerVariant.input,
- void onConfirm()?,
- VoidCallback? onCancel,
- ValueChanged<
DateTime> ? onDateChanged, - Color? accentColor,
- Color? selectedBackgroundColor,
- Color? unselectedBackgroundColor,
- DateTime? firstDate,
- DateTime? lastDate,
- Color? primaryBackgroundColor,
- Color? unselectedTextColor,
- Color? timeLabelColor,
- Color? secondaryBackgroundColor,
- Color? titleColor,
- Color? borderColor,
- double? dateColumnWidth,
- double? timeColumnWidth,
- double? spinnerWidth,
- double? spinnerFontSize,
- double? titleFontSize,
- FontWeight? titleFontWeight,
Implementation
const DDSTimePicker({
Key? key,
required this.initialTime,
this.initialDate,
this.title = 'Select Time',
this.cancelButtonText = 'Cancel',
this.okButtonText = 'OK',
this.variant = TimePickerVariant.input,
this.onConfirm,
this.onCancel,
this.onDateChanged,
this.accentColor,
this.selectedBackgroundColor,
this.unselectedBackgroundColor,
this.firstDate,
this.lastDate,
this.primaryBackgroundColor,
this.unselectedTextColor,
this.timeLabelColor,
this.secondaryBackgroundColor,
this.titleColor,
this.borderColor,
this.dateColumnWidth,
this.timeColumnWidth,
this.spinnerWidth,
this.spinnerFontSize,
this.titleFontSize,
this.titleFontWeight,
}) : super(key: key);