FDateTextField constructor
const
FDateTextField({
- Key? key,
- String? labelText,
- required TextEditingController controller,
- FColorI fSelectColor = FColor.lightPrimaryPurple,
- TextInputType textInputType = TextInputType.text,
- List<
TextInputFormatter> inputFormatters = const [], - bool enabled = true,
- TextCapitalization textCapitalization = TextCapitalization.none,
- IconData? prefixIcon,
- TextAlign textAlign = TextAlign.end,
- String? hintText,
- FocusNode? focusNode,
- void onEditingComplete()?,
- VoidCallback? onTap,
- Widget? suffixIcon,
- int? maxLines,
- int? minLines,
- double borderRadius = 5,
- bool obscureText = false,
- Iterable<
String> ? autofillHints, - FTextStyle? labelStyle,
- FTextStyle? textStyle,
- FTextStyle? hintStyle,
- FTextStyle? disabledStyle,
- FTextStyle? errorStyle,
- AutovalidateMode? autovalidateMode,
- FColor fillColor = FColor.noColor,
- FColorI fFillDisabledColor = FColor.lightPaleGray,
- FColorI fDisabledBorderColor = FColor.lightMidGray,
- bool readOnly = false,
- InputDecoration? inputDecoration,
- bool isDense = false,
- FormFieldValidator<
String> ? validator, - String? initialValue,
- String formatter(
- DateTime date
- DateTime? firstDate,
- DateTime? lastDate,
- String? helpText,
- String? confirmText,
- String? cancelText,
- String? errorFormatText,
- String? errorInvalidText,
- String? fieldHintText,
- String? fieldLabelText,
- DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
- DatePickerMode initialDatePickerMode = DatePickerMode.year,
- FColor primary = FColor.darkPrimaryPurpleVariant,
- FColorI onPrimary = FColor.darkSecondaryPurple,
- FColor onSurface = FColor.darkPrimaryPurple,
- FColor foregroundColor = FColor.darkPrimaryPurple,
- bool isMandatory = false,
- FTextStyle? mandatoryDisabled,
- FTextStyle? mandatoryStyle,
- void onUpdateDate()?,
- DateTime? initialDate,
- PickerType pickerType = PickerType.date,
- Locale? locale,
- TimePickerEntryMode initialEntryHourMode = TimePickerEntryMode.dialOnly,
- double focusIndex = 0,
- 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);