AdvancedSearch constructor
const
AdvancedSearch({
- required List<
String> searchItems, - required OnTap onItemTap,
- int maxElementsToDisplay = 7,
- SearchClear onSearchClear = _searchClearDefaultFunction,
- Color? selectedTextColor,
- Color? unSelectedTextColor,
- Color? enabledBorderColor,
- Color? disabledBorderColor,
- Color? focusedBorderColor,
- Color? cursorColor,
- double borderRadius = 10.0,
- double fontSize = 14.0,
- double singleItemHeight = 45.0,
- int itemsShownAtStart = 10,
- String hintText = 'Enter a name',
- bool autoCorrect = false,
- bool enabled = true,
- SubmitResults? onSubmitted,
- SubmitResults? onEditingProgress,
- Color? inputTextFieldBgColor,
- Color searchResultsBgColor = Colors.white,
- SearchMode searchMode = SearchMode.CONTAINS,
- bool caseSensitive = false,
- int minLettersForSearch = 0,
- Color borderColor = const Color(0xFFFAFAFA),
- Color hintTextColor = Colors.grey,
- bool clearSearchEnabled = true,
- bool showListOfResults = true,
- bool hideHintOnTextInputFocus = false,
- double verticalPadding = 10,
- double horizontalPadding = 10,
- WidgetItems? searchItemsWidget,
- bool autoListing = false,
Implementation
const AdvancedSearch({
required this.searchItems,
required this.onItemTap,
this.maxElementsToDisplay = 7,
this.onSearchClear = _searchClearDefaultFunction,
this.selectedTextColor,
this.unSelectedTextColor,
this.enabledBorderColor,
this.disabledBorderColor,
this.focusedBorderColor,
this.cursorColor,
this.borderRadius = 10.0,
this.fontSize = 14.0,
this.singleItemHeight = 45.0,
this.itemsShownAtStart = 10,
this.hintText = 'Enter a name',
this.autoCorrect = false,
this.enabled = true,
this.onSubmitted,
this.onEditingProgress,
this.inputTextFieldBgColor,
this.searchResultsBgColor = Colors.white,
this.searchMode = SearchMode.CONTAINS,
this.caseSensitive = false,
this.minLettersForSearch = 0,
this.borderColor = const Color(0xFFFAFAFA),
this.hintTextColor = Colors.grey,
this.clearSearchEnabled = true,
this.showListOfResults = true,
this.hideHintOnTextInputFocus = false,
this.verticalPadding = 10,
this.horizontalPadding = 10,
this.searchItemsWidget,
this.autoListing = false,
});