SearchBar constructor

SearchBar({
  1. Key? key,
  2. String placeHolder = '请输入要搜索的内容',
  3. bool autofocus = false,
  4. bool enabled = true,
  5. String? cancelText,
  6. Color? cursorColor,
  7. Widget? right,
  8. BarStyle style = BarStyle.solid,
  9. Brightness keyboardAppearance = Brightness.light,
  10. Function? rightAction,
  11. Color? searchIconColor,
  12. OnChangeHandle? onChangeHandle,
  13. OnSubmitHandle? onSubmitHandle,
  14. OnFocusChangeHandle? onFocusChangeHandle,
  15. 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);