buildByMaterial method
build on material mode
Implementation
@override
Widget buildByMaterial(BuildContext context) {
return _CNSearchBarMaterial(
placeholder: placeholder,
text: text,
prompt: prompt,
showsCancelButton: showsCancelButton,
showsBookmarkButton: showsBookmarkButton,
showsSearchResultsButton: showsSearchResultsButton,
searchBarStyle: searchBarStyle,
barTintColor: barTintColor,
tintColor: tintColor,
searchFieldBackgroundColor: searchFieldBackgroundColor,
showsScopeBar: showsScopeBar,
scopeButtonTitles: scopeButtonTitles,
selectedScopeIndex: selectedScopeIndex,
keyboardType: keyboardType,
keyboardAppearance: keyboardAppearance,
returnKeyType: returnKeyType,
enablesReturnKeyAutomatically: enablesReturnKeyAutomatically,
autocapitalizationType: autocapitalizationType,
autocorrectionType: autocorrectionType,
spellCheckingType: spellCheckingType,
onTextChanged: onTextChanged,
onSearchButtonClicked: onSearchButtonClicked,
onCancelButtonClicked: onCancelButtonClicked,
onScopeChanged: onScopeChanged,
onBookmarkButtonClicked: onBookmarkButtonClicked,
height: height,
);
}