DateTimeField constructor

const DateTimeField({
  1. TimePickerEntryMode initialTimeEntryMode = TimePickerEntryMode.dial,
  2. DatePickerEntryMode initialDateEntryMode = DatePickerEntryMode.calendar,
  3. DatePickerMode initialDatePickerMode = DatePickerMode.day,
  4. DateTime? firstDate,
  5. DateTime? lastDate,
  6. String locale = 'pt_br',
  7. String dateFormat = 'dd/MM/yyyy HH:mm',
  8. String mask = 'B#/D#/#### A#:C#',
  9. IconData? suffixIconData = FontAwesomeIcons.calendarDay,
  10. String? labelPrefix = '',
  11. String? label,
  12. Widget? labelWidget,
  13. DateTimeEditingController? controller,
  14. FormFieldValidator<DateTime?>? validator,
  15. TextAlign textAlign = TextAlign.start,
  16. FormFieldSetter<DateTime?>? onSaved,
  17. DateTime? initialValue,
  18. bool enabled = true,
  19. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  20. FocusNode? focusNode,
  21. TextInputAction? textInputAction,
  22. ValueChanged<String?>? onFieldSubmitted,
  23. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  24. bool enableInteractiveSelection = true,
  25. bool filled = false,
  26. Color? fillColor,
  27. bool readOnly = false,
  28. TextStyle? style,
  29. InputDecoration? decoration,
  30. EdgeInsets padding = const EdgeInsets.all(8),
  31. String? hintText,
  32. EdgeInsets? contentPadding,
  33. String? counterText = '',
  34. Widget? prefix,
  35. Widget? prefixIcon,
  36. void onTap()?,
  37. void lostFocus(
    1. DateTime?
    )?,
  38. bool required = true,
  39. bool clearOnCancel = true,
  40. int? sizeExtraSmall,
  41. int? sizeSmall,
  42. int? sizeMedium,
  43. int? sizeLarge,
  44. int? sizeExtraLarge,
  45. double? minHeight,
  46. Key? key,
})

Implementation

const DateTimeField({
  this.initialTimeEntryMode = TimePickerEntryMode.dial,
  this.initialDateEntryMode = DatePickerEntryMode.calendar,
  this.initialDatePickerMode = DatePickerMode.day,
  this.firstDate,
  this.lastDate,
  this.locale = 'pt_br',
  this.dateFormat = 'dd/MM/yyyy HH:mm',
  this.mask = 'B#/D#/#### A#:C#',
  super.suffixIconData = FontAwesomeIcons.calendarDay,
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.validator,
  super.textAlign = TextAlign.start,
  super.onSaved,
  super.initialValue,
  super.enabled = true,
  super.autoValidateMode = AutovalidateMode.disabled,
  super.focusNode,
  super.textInputAction,
  super.onFieldSubmitted,
  super.scrollPadding = const EdgeInsets.all(20),
  super.enableInteractiveSelection = true,
  super.filled = false,
  super.fillColor,
  super.readOnly = false,
  super.style,
  super.decoration,
  super.padding = const EdgeInsets.all(8),
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.onTap,
  super.lostFocus,
  super.required = true,
  super.clearOnCancel = true,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
}) : super(maxLength: mask.length);