IOSSearchText constructor
const
IOSSearchText({
- Key? key,
- SearchTextController? searchController,
- TextEditingController? controller,
- int maxLines = 1,
- int? maxLength,
- String? hintText,
- TextStyle? hintStyle,
- TextStyle? textStyle,
- Widget? prefixIcon,
- OnSearchTextChange? onTextChange,
- OnCommit? onTextCommit,
- OnTextClear? onTextClear,
- VoidCallback? onActionTap,
- Widget? action,
- double maxHeight = 60,
- EdgeInsets innerPadding = const EdgeInsets.only(top: 10, bottom: 10, left: 20, right: 20),
- Color outSideColor = Colors.white,
- Color innerColor = const Color(0xfff8f8f8),
- BoxBorder? normalBorder,
- BoxBorder? activeBorder,
- BorderRadius borderRadius = const BorderRadius.all(const Radius.circular(6.0)),
- FocusNode? focusNode,
- bool autoFocus = false,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType? textInputType,
Implementation
const IOSSearchText({
Key? key,
this.searchController,
this.controller,
this.maxLines = 1,
this.maxLength,
this.hintText,
this.hintStyle,
this.textStyle,
this.prefixIcon,
this.onTextChange,
this.onTextCommit,
this.onTextClear,
this.onActionTap,
this.action,
this.maxHeight = 60,
this.innerPadding =
const EdgeInsets.only(top: 10, bottom: 10, left: 20, right: 20),
this.outSideColor = Colors.white,
this.innerColor = const Color(0xfff8f8f8),
this.normalBorder,
this.activeBorder,
this.borderRadius = const BorderRadius.all(const Radius.circular(6.0)),
this.focusNode,
this.autoFocus = false,
this.textInputAction,
this.inputFormatters,
this.textInputType,
}) : super(key: key);