AppTextFormField.search constructor

AppTextFormField.search({
  1. bool? alignLabelWithHint,
  2. InputBorder? border,
  3. BoxConstraints? constraints,
  4. EdgeInsets? contentPadding,
  5. TextEditingController? controller,
  6. InputBorder? disabledBorder,
  7. bool enabled = true,
  8. Color? fillColor,
  9. bool? filled,
  10. InputBorder? focusedBorder,
  11. FocusNode? focusNode,
  12. String? helperText,
  13. String? hintText = 'Search',
  14. Color? hoverColor,
  15. String? initialValue,
  16. InputDecorationTheme? inputTheme,
  17. bool? isCollapsed,
  18. String? labelText,
  19. TextStyle? labelStyle,
  20. Widget? label,
  21. bool loseFocusOnOutsideTap = true,
  22. FutureOr<void> onChanged(
    1. String value
    )?,
  23. ValueChanged<String>? onFieldSubmitted,
  24. ValueChanged<bool>? onFocusChanged,
  25. bool readOnly = false,
  26. bool requestFocusOnInitState = false,
  27. ScrollPhysics? scrollPhysics,
  28. bool selectAllOnFocus = false,
  29. Widget? suffixIcon,
  30. TextAlign textAlign = TextAlign.start,
  31. Key? key,
})

Implementation

AppTextFormField.search({
  this.alignLabelWithHint,
  this.border,
  this.constraints,
  this.contentPadding,
  this.controller,
  this.disabledBorder,
  this.enabled = true,
  this.fillColor,
  this.filled,
  this.focusedBorder,
  this.focusNode,
  this.helperText,
  this.hintText = 'Search',
  this.hoverColor,
  this.initialValue,
  this.inputTheme,
  this.isCollapsed,
  this.labelText,
  this.labelStyle,
  this.label,
  this.loseFocusOnOutsideTap = true,
  this.onChanged,
  this.onFieldSubmitted,
  this.onFocusChanged,
  this.readOnly = false,
  this.requestFocusOnInitState = false,
  this.scrollPhysics,
  this.selectAllOnFocus = false,
  this.suffixIcon,
  this.textAlign = TextAlign.start,
  super.key,
})  : autofillHints = null,
      autoValidateMode = AutovalidateMode.disabled,
      debounceTime = defaultDebounceTime,
      enabledBorder = null,
      errorBorder = null,
      errorType = AppTextFormFieldErrorType.string,
      hintStyle = null,
      inputFormatters = null,
      keyboardType = TextInputType.text,
      labelBehavior = AppTextFormFieldLabelBehavior.flutterAuto,
      maxLength = null,
      maxLines = 1,
      minLines = null,
      obscureText = false,
      prefix = null,
      prefixIcon = const Icon(
        Icons.search,
        size: kMDSize,
      ),
      prefixText = null,
      showLoader = false,
      style = null,
      suffix = null,
      suffixText = null,
      suffixStyle = null,
      textInputAction = TextInputAction.search,
      validator = null,
      onTap = null;