DDSTimePicker constructor

const DDSTimePicker({
  1. Key? key,
  2. required TimeOfDay initialTime,
  3. DateTime? initialDate,
  4. String title = 'Select Time',
  5. String cancelButtonText = 'Cancel',
  6. String okButtonText = 'OK',
  7. TimePickerVariant variant = TimePickerVariant.input,
  8. void onConfirm(
    1. TimeOfDay?
    )?,
  9. VoidCallback? onCancel,
  10. ValueChanged<DateTime>? onDateChanged,
  11. Color? accentColor,
  12. Color? selectedBackgroundColor,
  13. Color? unselectedBackgroundColor,
  14. DateTime? firstDate,
  15. DateTime? lastDate,
  16. Color? primaryBackgroundColor,
  17. Color? unselectedTextColor,
  18. Color? timeLabelColor,
  19. Color? secondaryBackgroundColor,
  20. Color? titleColor,
  21. Color? borderColor,
  22. double? dateColumnWidth,
  23. double? timeColumnWidth,
  24. double? spinnerWidth,
  25. double? spinnerFontSize,
  26. double? titleFontSize,
  27. 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);