GlassSearchField constructor

const GlassSearchField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. String placeholder = 'Search',
  5. ValueChanged<String>? onChanged,
  6. ValueChanged<String>? onSubmitted,
  7. bool enabled = true,
  8. bool autofocus = false,
  9. double maxWidth = 360,
  10. 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,
});