FDateTextField constructor

const FDateTextField({
  1. Key? key,
  2. String? labelText,
  3. required TextEditingController controller,
  4. FColorI fSelectColor = FColor.lightPrimaryPurple,
  5. TextInputType textInputType = TextInputType.text,
  6. List<TextInputFormatter> inputFormatters = const [],
  7. bool enabled = true,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. IconData? prefixIcon,
  10. TextAlign textAlign = TextAlign.end,
  11. String? hintText,
  12. FocusNode? focusNode,
  13. void onEditingComplete()?,
  14. VoidCallback? onTap,
  15. Widget? suffixIcon,
  16. int? maxLines,
  17. int? minLines,
  18. double borderRadius = 5,
  19. bool obscureText = false,
  20. Iterable<String>? autofillHints,
  21. FTextStyle? labelStyle,
  22. FTextStyle? textStyle,
  23. FTextStyle? hintStyle,
  24. FTextStyle? disabledStyle,
  25. FTextStyle? errorStyle,
  26. AutovalidateMode? autovalidateMode,
  27. FColor fillColor = FColor.noColor,
  28. FColorI fFillDisabledColor = FColor.lightPaleGray,
  29. FColorI fDisabledBorderColor = FColor.lightMidGray,
  30. bool readOnly = false,
  31. InputDecoration? inputDecoration,
  32. bool isDense = false,
  33. FormFieldValidator<String>? validator,
  34. String? initialValue,
  35. String formatter(
    1. DateTime date
    )?,
  36. DateTime? firstDate,
  37. DateTime? lastDate,
  38. String? helpText,
  39. String? confirmText,
  40. String? cancelText,
  41. String? errorFormatText,
  42. String? errorInvalidText,
  43. String? fieldHintText,
  44. String? fieldLabelText,
  45. DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
  46. DatePickerMode initialDatePickerMode = DatePickerMode.year,
  47. FColor primary = FColor.darkPrimaryPurpleVariant,
  48. FColorI onPrimary = FColor.darkSecondaryPurple,
  49. FColor onSurface = FColor.darkPrimaryPurple,
  50. FColor foregroundColor = FColor.darkPrimaryPurple,
  51. bool isMandatory = false,
  52. FTextStyle? mandatoryDisabled,
  53. FTextStyle? mandatoryStyle,
  54. void onUpdateDate(
    1. DateTime
    )?,
  55. DateTime? initialDate,
  56. PickerType pickerType = PickerType.date,
  57. Locale? locale,
  58. TimePickerEntryMode initialEntryHourMode = TimePickerEntryMode.dialOnly,
  59. double focusIndex = 0,
  60. double height = 48,
})

Implementation

const FDateTextField({
  Key? key,
  this.labelText,
  required this.controller,
  this.fSelectColor = FColor.lightPrimaryPurple,
  this.textInputType = TextInputType.text,
  this.inputFormatters = const [],
  this.enabled = true,
  this.textCapitalization = TextCapitalization.none,
  this.prefixIcon,
  this.textAlign = TextAlign.end,
  this.hintText,
  this.focusNode,
  this.onEditingComplete,
  this.onTap,
  this.suffixIcon,
  this.maxLines,
  this.minLines,
  this.borderRadius = 5,
  this.obscureText = false,
  this.autofillHints,
  this.labelStyle,
  this.textStyle,
  this.hintStyle,
  this.disabledStyle,
  this.errorStyle,
  this.autovalidateMode,
  this.fillColor = FColor.noColor,
  this.fFillDisabledColor = FColor.lightPaleGray,
  this.fDisabledBorderColor = FColor.lightMidGray,
  this.readOnly = false,
  this.inputDecoration,
  this.isDense = false,
  this.validator,
  this.initialValue,
  this.formatter,
  this.firstDate,
  this.lastDate,
  this.helpText,
  this.confirmText,
  this.cancelText,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldHintText,
  this.fieldLabelText,
  this.initialEntryMode = DatePickerEntryMode.calendar,
  this.initialDatePickerMode = DatePickerMode.year,
  this.primary = FColor.darkPrimaryPurpleVariant,
  this.onPrimary = FColor.darkSecondaryPurple,
  this.onSurface = FColor.darkPrimaryPurple,
  this.foregroundColor = FColor.darkPrimaryPurple,
  this.isMandatory = false,
  this.mandatoryDisabled,
  this.mandatoryStyle,
  this.onUpdateDate,
  this.initialDate,
  this.pickerType = PickerType.date,
  this.locale,
  this.initialEntryHourMode = TimePickerEntryMode.dialOnly,
  this.focusIndex = 0,
  this.height = 48,
}) : super(key: key);