DateRangePickerDialog constructor

const DateRangePickerDialog({
  1. Key? key,
  2. DateTimeRange<DateTime>? initialDateRange,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
  5. DateTime? currentDate,
  6. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  7. TextStyle rangeDateTextStyle = const TextStyle(),
  8. TextStyle titleTextStyle = const TextStyle(),
  9. String? cancelText,
  10. String? confirmText,
  11. String? saveText,
  12. String? errorInvalidRangeText,
  13. String? errorFormatText,
  14. String? errorInvalidText,
  15. String? fieldStartHintText,
  16. String? fieldEndHintText,
  17. String? fieldStartLabelText,
  18. String? fieldEndLabelText,
  19. String? restorationId,
  20. String? helpText,
})

A Material-style date range picker dialog.

Implementation

const DateRangePickerDialog({
  Key? key,
  this.initialDateRange,
  required this.firstDate,
  required this.lastDate,
  this.currentDate,
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.rangeDateTextStyle = const TextStyle(),
  this.titleTextStyle = const TextStyle(),
  this.cancelText,
  this.confirmText,
  this.saveText,
  this.errorInvalidRangeText,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldStartHintText,
  this.fieldEndHintText,
  this.fieldStartLabelText,
  this.fieldEndLabelText,
  this.restorationId,
  this.helpText,
}) : super(key: key);