GlassSearchBarConfig constructor

const GlassSearchBarConfig({
  1. required ValueChanged<bool> onSearchToggle,
  2. String hintText = 'Search',
  3. double? collapsedTabWidth,
  4. WidgetBuilder? collapsedLogoBuilder,
  5. Color? searchIconColor,
  6. Widget? searchIcon,
  7. Color? micIconColor,
  8. TextStyle? hintStyle,
  9. TextEditingController? controller,
  10. FocusNode? focusNode,
  11. ValueChanged<String>? onChanged,
  12. ValueChanged<String>? onSubmitted,
  13. VoidCallback? onMicTap,
  14. Color? textColor,
  15. Color? cursorColor,
  16. WidgetBuilder? trailingBuilder,
  17. TextInputAction? textInputAction,
  18. TextInputType? keyboardType,
  19. bool autocorrect = true,
  20. bool enableSuggestions = true,
  21. TapRegionCallback? onTapOutside,
  22. bool autoFocusOnExpand = false,
  23. bool expandWhenActive = true,
  24. bool showsCancelButton = true,
  25. Color? cancelButtonColor,
  26. Widget? cancelIcon,
  27. double cancelIconSize = 24,
  28. ValueChanged<bool>? onSearchFocusChanged,
  29. VoidCallback? onSearchFieldTap,
  30. VoidCallback? onCancelTap,
})

Creates a search bar configuration.

Implementation

const GlassSearchBarConfig({
  required this.onSearchToggle,
  this.hintText = 'Search',
  this.collapsedTabWidth,
  this.collapsedLogoBuilder,
  this.searchIconColor,
  this.searchIcon,
  this.micIconColor,
  this.hintStyle,
  this.controller,
  this.focusNode,
  this.onChanged,
  this.onSubmitted,
  this.onMicTap,
  this.textColor,
  this.cursorColor,
  this.trailingBuilder,
  this.textInputAction,
  this.keyboardType,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.onTapOutside,
  this.autoFocusOnExpand = false,
  this.expandWhenActive = true,
  this.showsCancelButton = true,
  this.cancelButtonColor,
  this.cancelIcon,
  this.cancelIconSize = 24,
  this.onSearchFocusChanged,
  this.onSearchFieldTap,
  this.onCancelTap,
});