AppTextFormField.search constructor
AppTextFormField.search({
- InputBorder? border,
- BoxConstraints? constraints,
- EdgeInsets? contentPadding,
- TextEditingController? controller,
- InputBorder? disabledBorder,
- bool enabled = true,
- Color? fillColor,
- bool? filled,
- InputBorder? focusedBorder,
- FocusNode? focusNode,
- String? helperText,
- String? hintText = 'Search',
- Color? hoverColor,
- String? initialValue,
- InputDecorationTheme? inputTheme,
- bool? isCollapsed,
- String? labelText,
- TextStyle? labelStyle,
- Widget? label,
- bool loseFocusOnOutsideTap = true,
- FutureOr<
void> onChanged(- String value
- ValueChanged<
String> ? onFieldSubmitted, - ValueChanged<
bool> ? onFocusChanged, - bool readOnly = false,
- bool requestFocusOnInitState = false,
- ScrollPhysics? scrollPhysics,
- bool selectAllOnFocus = false,
- Widget? suffixIcon,
- TextAlign textAlign = TextAlign.start,
- 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;