DDSDatePicker constructor

const DDSDatePicker({
  1. Key? key,
  2. required DateTime initialDate,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
  5. String title = 'Pick a Date',
  6. String cancelButtonText = 'Cancel',
  7. String okButtonText = 'Ok',
  8. DatePickerFooterButtonType footerButtonType = DatePickerFooterButtonType.filled,
  9. DatePickerVariant variant = DatePickerVariant.basic,
  10. void onConfirm(
    1. DateTime?
    )?,
  11. VoidCallback? onCancel,
  12. Color? primaryBackgroundColor,
  13. Color? titleColor,
  14. Color? dateTextColor,
  15. Color? accentColor,
  16. Color? secondaryBackgroundColor,
  17. Color? secondaryTextColor,
  18. Color? selectedTextColor,
  19. Color? unselectedTextColor,
  20. Color? monthTextColor,
  21. double? scrollableButtonLeftPosition,
})

Implementation

const DDSDatePicker(
    {Key? key,
    required this.initialDate,
    required this.firstDate,
    required this.lastDate,
    this.title = 'Pick a Date',
    this.cancelButtonText = 'Cancel',
    this.okButtonText = 'Ok',
    this.footerButtonType = DatePickerFooterButtonType.filled,
    this.variant = DatePickerVariant.basic,
    this.onConfirm,
    this.onCancel,
    this.primaryBackgroundColor,
    this.titleColor,
    this.dateTextColor,
    this.accentColor,
    this.secondaryBackgroundColor,
    this.secondaryTextColor,
    this.selectedTextColor,
    this.unselectedTextColor,
    this.monthTextColor,
    this.scrollableButtonLeftPosition})
    : super(key: key);