AtomicDatePicker constructor

const AtomicDatePicker({
  1. Key? key,
  2. DateTime? initialDate,
  3. DateTime? firstDate,
  4. DateTime? lastDate,
  5. ValueChanged<DateTime?>? onDateSelected,
  6. DateTime? currentDate,
  7. DatePickerMode initialDatePickerMode = DatePickerMode.day,
  8. SelectableDayPredicate? selectableDayPredicate,
  9. String? helpText,
  10. String? cancelText,
  11. String? confirmText,
  12. Locale? locale,
  13. bool useRootNavigator = true,
  14. RouteSettings? routeSettings,
  15. TextDirection? textDirection,
  16. TransitionBuilder? builder,
  17. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  18. String? fieldHintText,
  19. String? fieldLabelText,
  20. String? errorFormatText,
  21. String? errorInvalidText,
  22. TextInputType? keyboardType,
  23. AtomicDatePickerVariant variant = AtomicDatePickerVariant.filled,
  24. AtomicDatePickerSize size = AtomicDatePickerSize.medium,
  25. bool showIcon = true,
  26. bool enabled = true,
  27. bool readOnly = false,
  28. String? label,
  29. String? helperText,
  30. String? errorText,
  31. String dateFormat(
    1. DateTime
    )?,
})

Implementation

const AtomicDatePicker({
  super.key,
  this.initialDate,
  this.firstDate,
  this.lastDate,
  this.onDateSelected,
  this.currentDate,
  this.initialDatePickerMode = DatePickerMode.day,
  this.selectableDayPredicate,
  this.helpText,
  this.cancelText,
  this.confirmText,
  this.locale,
  this.useRootNavigator = true,
  this.routeSettings,
  this.textDirection,
  this.builder,
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.fieldHintText,
  this.fieldLabelText,
  this.errorFormatText,
  this.errorInvalidText,
  this.keyboardType,
  this.variant = AtomicDatePickerVariant.filled,
  this.size = AtomicDatePickerSize.medium,
  this.showIcon = true,
  this.enabled = true,
  this.readOnly = false,
  this.label,
  this.helperText,
  this.errorText,
  this.dateFormat,
});