XSearchBar constructor
XSearchBar({
- String? labelText,
- TextStyle? textStyle,
- double? height,
- TextEditingController? controller,
- BoxDecoration? decorationOfContainerXSearch,
- Color? colorIconForClear,
- Color? colorIconForSearch,
- Widget? iconForClear,
- dynamic onPressedSearch()?,
- dynamic onPressed()?,
- Color? iconColor,
- Color? borderColor,
- String? hintText,
- TextStyle? hintStyle,
- TextStyle? labelStyle,
- Widget? iconForSearch,
- InputBorder? enabledBorder,
- InputBorder? disabledBorder,
- InputBorder? border,
- FocusNode? searchFocus,
- dynamic onTextChanged()?,
- dynamic onPressedClear()?,
- Color? colorOfSearchBox,
- EdgeInsetsGeometry? marginOfSearchBox,
- EdgeInsetsGeometry? paddingOfContent,
- bool autoFocus = true,
Implementation
XSearchBar({
this.labelText,
this.textStyle,
this.height,
this.controller,
this.decorationOfContainerXSearch,
this.colorIconForClear,
this.colorIconForSearch,
this.iconForClear,
this.onPressedSearch,
this.onPressed,
this.iconColor,
this.borderColor,
this.hintText,
this.hintStyle,
this.labelStyle,
this.iconForSearch,
this.enabledBorder,
this.disabledBorder,
this.border,
this.searchFocus,
this.onTextChanged,
this.onPressedClear,
this.colorOfSearchBox,
this.marginOfSearchBox,
this.paddingOfContent,
this.autoFocus = true,
});