BaseSearchBar constructor
const
BaseSearchBar({
- Key? key,
- String? placeholder,
- String? text,
- String? prompt,
- bool showsCancelButton = false,
- bool showsBookmarkButton = false,
- bool showsSearchResultsButton = false,
- CNSearchBarStyle searchBarStyle = CNSearchBarStyle.defaultStyle,
- Color? barTintColor,
- Color? tintColor,
- Color? searchFieldBackgroundColor,
- bool showsScopeBar = false,
- List<
String> scopeButtonTitles = const [], - int selectedScopeIndex = 0,
- CNKeyboardType keyboardType = CNKeyboardType.defaultType,
- CNKeyboardAppearance keyboardAppearance = CNKeyboardAppearance.defaultAppearance,
- CNReturnKeyType returnKeyType = CNReturnKeyType.search,
- bool enablesReturnKeyAutomatically = true,
- CNAutocapitalizationType autocapitalizationType = CNAutocapitalizationType.none,
- CNAutocorrectionType autocorrectionType = CNAutocorrectionType.defaultType,
- CNSpellCheckingType spellCheckingType = CNSpellCheckingType.defaultType,
- ValueChanged<
String> ? onTextChanged, - ValueChanged<
String> ? onSearchButtonClicked, - VoidCallback? onCancelButtonClicked,
- ValueChanged<
int> ? onScopeChanged, - VoidCallback? onBookmarkButtonClicked,
- double height = 56.0,
- BaseParam? baseParam,
Creates a native iOS search bar.
Implementation
const BaseSearchBar({
Key? key,
this.placeholder,
this.text,
this.prompt,
this.showsCancelButton = false,
this.showsBookmarkButton = false,
this.showsSearchResultsButton = false,
this.searchBarStyle = CNSearchBarStyle.defaultStyle,
this.barTintColor,
this.tintColor,
this.searchFieldBackgroundColor,
this.showsScopeBar = false,
this.scopeButtonTitles = const [],
this.selectedScopeIndex = 0,
this.keyboardType = CNKeyboardType.defaultType,
this.keyboardAppearance = CNKeyboardAppearance.defaultAppearance,
this.returnKeyType = CNReturnKeyType.search,
this.enablesReturnKeyAutomatically = true,
this.autocapitalizationType = CNAutocapitalizationType.none,
this.autocorrectionType = CNAutocorrectionType.defaultType,
this.spellCheckingType = CNSpellCheckingType.defaultType,
this.onTextChanged,
this.onSearchButtonClicked,
this.onCancelButtonClicked,
this.onScopeChanged,
this.onBookmarkButtonClicked,
this.height = 56.0,
BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);