ModalSearchBar constructor
const
ModalSearchBar({
- Key? key,
- required dynamic onTextChanged(),
- TextEditingController? controller,
- dynamic onDismissKeyboard()?,
- String hint = '',
- String initialValue = '',
- String? iconPath = 'lib/modal/assets/icons/search.svg',
- Widget? prefixIcon,
- Widget? suffixIcon,
- TextAlign? textAlign,
- TextInputType? textInputType,
- TextInputAction? textInputAction,
- dynamic onSubmitted()?,
- bool? autofocus,
- dynamic onFocusChange()?,
- bool noIcons = false,
- bool showCursor = true,
- TextStyle? textStyle,
- bool debounce = true,
- FocusNode? focusNode,
- double? width,
- double height = kSearchFieldHeight,
- bool enabled = true,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const ModalSearchBar({
super.key,
required this.onTextChanged,
this.controller,
this.onDismissKeyboard,
this.hint = '',
this.initialValue = '',
this.iconPath = 'lib/modal/assets/icons/search.svg',
this.prefixIcon,
this.suffixIcon,
this.textAlign,
this.textInputType,
this.textInputAction,
this.onSubmitted,
this.autofocus,
this.onFocusChange,
this.noIcons = false,
this.showCursor = true,
this.textStyle,
this.debounce = true,
this.focusNode,
this.width,
this.height = kSearchFieldHeight,
this.enabled = true,
this.inputFormatters,
});