DateField constructor
const
DateField({
- DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
- DatePickerMode initialDatePickerMode = DatePickerMode.day,
- DateTime? firstDate,
- DateTime? lastDate,
- String locale = 'pt_br',
- String dateFormat = 'dd/MM/yyyy',
- String mask = 'B#/D#/####',
- IconData? suffixIconData = FontAwesomeIcons.solidCalendarDays,
- String? labelPrefix = '',
- String? label,
- Widget? labelWidget,
- DateEditingController? controller,
- FormFieldValidator<
DateTime?> ? validator, - TextAlign textAlign = TextAlign.start,
- FormFieldSetter<
DateTime?> ? onSaved, - DateTime? initialValue,
- bool enabled = true,
- AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
- FocusNode? focusNode,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSubmitted, - EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool enableInteractiveSelection = true,
- bool filled = false,
- Color? fillColor,
- bool readOnly = false,
- TextStyle? style,
- InputDecoration? decoration,
- EdgeInsets padding = const EdgeInsets.all(8),
- String? hintText,
- EdgeInsets? contentPadding,
- String? counterText = '',
- Widget? prefix,
- Widget? prefixIcon,
- void onTap()?,
- void lostFocus()?,
- bool required = true,
- bool clearOnCancel = true,
- int? sizeExtraSmall,
- int? sizeSmall,
- int? sizeMedium,
- int? sizeLarge,
- int? sizeExtraLarge,
- double? minHeight,
- 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);