AppTextFormField.search constructor

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

Implementation

AppTextFormField.search({
  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;