IOSSearchText constructor

const IOSSearchText({
  1. Key? key,
  2. SearchTextController? searchController,
  3. TextEditingController? controller,
  4. int maxLines = 1,
  5. int? maxLength,
  6. String? hintText,
  7. TextStyle? hintStyle,
  8. TextStyle? textStyle,
  9. Widget? prefixIcon,
  10. OnSearchTextChange? onTextChange,
  11. OnCommit? onTextCommit,
  12. OnTextClear? onTextClear,
  13. VoidCallback? onActionTap,
  14. Widget? action,
  15. double maxHeight = 60,
  16. EdgeInsets innerPadding = const EdgeInsets.only(top: 10, bottom: 10, left: 20, right: 20),
  17. Color outSideColor = Colors.white,
  18. Color innerColor = const Color(0xfff8f8f8),
  19. BoxBorder? normalBorder,
  20. BoxBorder? activeBorder,
  21. BorderRadius borderRadius = const BorderRadius.all(const Radius.circular(6.0)),
  22. FocusNode? focusNode,
  23. bool autoFocus = false,
  24. TextInputAction? textInputAction,
  25. List<TextInputFormatter>? inputFormatters,
  26. 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);