SearchTextFieldBar constructor
const
SearchTextFieldBar({
- Key? key,
- bool jump = false,
- String hint = "搜索",
- required double width,
- required double height,
- double? borderRadius,
- EdgeInsets? margin,
- EdgeInsets? padding,
- bool? autofocus,
- String? heroTag,
- FocusNode? focusNode,
- Color splashColor = const Color(0xFFD6D6D6),
- TextEditingController? controller,
- dynamic onSubmitted(
- String text
- dynamic onChanged(
- String text
- dynamic onBackCallback()?,
- Function? clearCallback,
- int inputKeyWordsLength = 20,
- double? iconSize,
- double? fontSize,
- bool isShowBackButton = false,
- Color? color,
- 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);