GlassSearchField constructor
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- String placeholder = 'Search',
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- bool autofocus = false,
- double maxWidth = 360,
- GlassMode mode = GlassMode.auto,
Creates a search field.
Implementation
const GlassSearchField({
super.key,
this.controller,
this.focusNode,
this.placeholder = 'Search',
this.onChanged,
this.onSubmitted,
this.enabled = true,
this.autofocus = false,
this.maxWidth = 360,
this.mode = GlassMode.auto,
});