SearchBar constructor
SearchBar({
- Key? key,
- String placeHolder = '请输入要搜索的内容',
- bool autofocus = false,
- bool enabled = true,
- String? cancelText,
- Color? cursorColor,
- Widget? right,
- BarStyle style = BarStyle.solid,
- Brightness keyboardAppearance = Brightness.light,
- Function? rightAction,
- Color? searchIconColor,
- OnChangeHandle? onChangeHandle,
- OnSubmitHandle? onSubmitHandle,
- OnFocusChangeHandle? onFocusChangeHandle,
- int inputCharactersLength = 100,
Implementation
SearchBar({
Key? key,
this.placeHolder = '请输入要搜索的内容',
this.autofocus = false,
this.enabled = true,
this.cancelText,
this.cursorColor,
this.right,
this.style = BarStyle.solid,
this.keyboardAppearance = Brightness.light,
this.rightAction,
this.searchIconColor,
this.onChangeHandle,
this.onSubmitHandle,
this.onFocusChangeHandle,
this.inputCharactersLength = 100,
}) : super(key: key);