searchField method
Widget
searchField(
- String? label,
- TextEditingController? controller,
- FocusNode focusNode,
- BuildContext context, {
- TextInputType? keyboardType,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- FocusNode? nextFocusNode,
- Color? colorText,
- Color? bgColor,
- bool? expands,
- String? hint,
- dynamic onChange()?,
- dynamic onSubmit()?,
- int? maxLines,
- Widget? suffixIcon,
- int? minLines,
- List<
TextInputFormatter> ? inputFormatters, - bool loading = false,
- bool enabled = true,
- bool? ignorePointer = false,
- bool? showPrefixSeparator = false,
- bool? showSuffixSeparator = false,
Implementation
Widget searchField(
String? label,
TextEditingController? controller,
FocusNode focusNode,
BuildContext context, {
TextInputType? keyboardType,
TextCapitalization? textCapitalization,
TextInputAction? textInputAction,
FocusNode? nextFocusNode,
Color? colorText,
Color? bgColor,
bool? expands,
String? hint,
Function(String)? onChange,
Function(String)? onSubmit,
int? maxLines,
Widget? suffixIcon,
int? minLines,
List<TextInputFormatter>? inputFormatters,
bool loading = false,
bool enabled = true,
bool? ignorePointer = false,
bool? showPrefixSeparator = false,
bool? showSuffixSeparator = false,
}) {
return CustomTextField(label, controller, focusNode,
enabled: enabled,
keyboardType: keyboardType,
textCapitalization: textCapitalization,
textInputAction: textInputAction,
nextFocusNode: nextFocusNode,
suffixIcon: suffixIcon,
prefixIcon: Icon(Icons.search, color: colorText,),
colorText: colorText,
expands: expands,
hint: hint,
onChange: onChange,
onSubmit: onSubmit,
maxLines: maxLines,
minLines: minLines,
inputFormatters: inputFormatters,
borderColor: Colors.transparent,
bgColor: bgColor ?? Theme.of(context).inputDecorationTheme.fillColor,
loading: loading,
ignorePointer: ignorePointer,
showPrefixSeparator: showPrefixSeparator,
showSuffixSeparator: showSuffixSeparator,
);
}