SearchTextFieldBar constructor

const SearchTextFieldBar({
  1. Key? key,
  2. bool jump = false,
  3. String hint = "搜索",
  4. required double width,
  5. required double height,
  6. double? borderRadius,
  7. EdgeInsets? margin,
  8. EdgeInsets? padding,
  9. bool? autofocus,
  10. String? heroTag,
  11. FocusNode? focusNode,
  12. Color splashColor = const Color(0xFFD6D6D6),
  13. TextEditingController? controller,
  14. dynamic onSubmitted(
    1. String text
    )?,
  15. dynamic onChanged(
    1. String text
    )?,
  16. dynamic onBackCallback()?,
  17. Function? clearCallback,
  18. int inputKeyWordsLength = 20,
  19. double? iconSize,
  20. double? fontSize,
  21. bool isShowBackButton = false,
  22. Color? color,
  23. TextInputType? keyboardType,
})

Implementation

const SearchTextFieldBar({
  Key? key,
  this.jump = false,
  this.hint = "搜索",
  required this.width,
  required this.height,
  this.borderRadius,
  this.margin,
  this.padding,
  this.autofocus,
  this.heroTag,
  this.focusNode,
  this.splashColor = const Color(0xFFD6D6D6),
  this.controller,
  this.onSubmitted,
  this.onChanged,
  this.onBackCallback,
  this.clearCallback,
  this.inputKeyWordsLength = 20,
  this.iconSize,
  this.fontSize,
  this.isShowBackButton = false,
  this.color,
  this.keyboardType,
}) : super(key: key);