SearchTextField constructor
const
SearchTextField({
- Key? key,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - TextStyle? style,
- String? placeholder,
- TextStyle? placeholderStyle,
- BoxDecoration? decoration,
- Color? backgroundColor,
- TextInputType? keyboardType = TextInputType.text,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- Color? itemColor,
- double itemSize = 20.0,
- EdgeInsetsGeometry prefixInsets = const EdgeInsetsDirectional.only(start: 4.0),
- Widget prefixIcon = const Icon(Icons.search),
- OverlayVisibilityMode suffixMode = OverlayVisibilityMode.editing,
- EdgeInsetsGeometry suffixInsets = const EdgeInsetsDirectional.only(end: 4.0),
- Icon suffixIcon = const Icon(Icons.clear),
- VoidCallback? onPrefixTap,
- VoidCallback? onSuffixTap,
- FocusNode? focusNode,
- bool enableIMEPersonalizedLearning = true,
- bool autofocus = false,
- VoidCallback? onTap,
- bool autocorrect = true,
- bool? enabled,
Creates a SearchTextField.
Implementation
const SearchTextField({
super.key,
this.controller,
this.onChanged,
this.onSubmitted,
this.style,
this.placeholder,
this.placeholderStyle,
this.decoration,
this.backgroundColor,
this.keyboardType = TextInputType.text,
this.padding = EdgeInsets.zero,
this.itemColor,
this.itemSize = 20.0,
this.prefixInsets = const EdgeInsetsDirectional.only(start: 4.0),
this.prefixIcon = const Icon(Icons.search),
this.suffixMode = OverlayVisibilityMode.editing,
this.suffixInsets = const EdgeInsetsDirectional.only(end: 4.0),
this.suffixIcon = const Icon(Icons.clear),
this.onPrefixTap,
this.onSuffixTap,
this.focusNode,
this.enableIMEPersonalizedLearning = true,
this.autofocus = false,
this.onTap,
this.autocorrect = true,
this.enabled,
});