NxSearchTextField constructor
const
NxSearchTextField({
- Key? key,
- dynamic onChanged()?,
- dynamic onSubmitted()?,
- dynamic onTap()?,
- WidgetStateProperty<
Color?> ? fillColor, - WidgetStateProperty<
TextStyle?> ? textStyle, - WidgetStateProperty<
TextStyle?> ? hintStyle, - String? hintText,
- TextEditingController? controller,
- FocusNode? focusNode,
- double? width,
- double? height,
- WidgetStatePropertyAll<
double> ? elevation, - Iterable<
Widget> ? trailing, - WidgetStateProperty<
BorderSide?> ? side, - WidgetStateProperty<
OutlinedBorder?> ? shape,
Creates a search text field.
onChanged
- Called when the text changesonSubmitted
- Called when the user submits the searchonTap
- Called when the field is tappedfillColor
- Background color for different statestextStyle
- Text style for different stateshintStyle
- Hint text style for different stateshintText
- Placeholder text (defaults to "Search")controller
- For controlling the text inputfocusNode
- For controlling focuswidth
- Field widthheight
- Field heightelevation
- Elevation for different statestrailing
- Widgets to show after the search iconside
- Border style for different statesshape
- Field shape for different states
Implementation
const NxSearchTextField({
super.key,
this.onChanged,
this.onSubmitted,
this.onTap,
this.fillColor,
this.textStyle,
this.hintStyle,
this.hintText,
this.controller,
this.focusNode,
this.width,
this.height,
this.elevation,
this.trailing,
this.side,
this.shape,
});