DateField constructor

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

Implementation

const DateField({
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.initialDatePickerMode = DatePickerMode.day,
  this.firstDate,
  this.lastDate,
  this.locale = 'pt_br',
  this.dateFormat = 'dd/MM/yyyy',
  this.mask = 'B#/D#/####',
  super.suffixIconData = FontAwesomeIcons.solidCalendarDays,
  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);