AppTextFormField.search constructor

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

Implementation

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