SearchBarWidget constructor
const
SearchBarWidget({
- Key? key,
- required TextEditingController controller,
- required String hintText,
- TextInputType? textInputType,
- int? maxLength,
- required dynamic onChanged(),
- String? validator()?,
- Widget? prefixIcon,
- Widget? suffixIcon,
- FocusNode? focusNode,
- EdgeInsetsGeometry? contentPadding,
- Color? fillColor,
- Color? borderColor,
- Color? hintTextColor,
- double? height,
- EdgeInsetsGeometry? padding,
- double? borderRadius,
- double? textSize,
- double? iconSize,
- bool? noPrefix,
- dynamic onSubmit()?,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const SearchBarWidget({
super.key,
required this.controller,
required this.hintText,
this.textInputType,
this.maxLength,
required this.onChanged,
this.validator,
this.prefixIcon,
this.suffixIcon,
this.focusNode,
this.contentPadding,
this.fillColor,
this.borderColor,
this.hintTextColor,
this.height,
this.padding,
this.borderRadius,
this.textSize,
this.iconSize,
this.noPrefix,
this.onSubmit,
this.textInputAction,
this.inputFormatters,
});