GlassSearchBar constructor
const
GlassSearchBar({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- String placeholder = 'Search',
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onCancel,
- bool showsCancelButton = false,
- bool autofocus = false,
- bool enabled = true,
- Color? searchIconColor,
- Color? clearIconColor,
- Color? cancelButtonColor,
- Widget? cancelIcon,
- double cancelIconSize = 24,
- TextStyle? textStyle,
- TextStyle? placeholderStyle,
- double height = 44.0,
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality? quality,
Creates a glass search bar.
Implementation
const GlassSearchBar({
super.key,
this.controller,
this.focusNode,
this.placeholder = 'Search',
this.onChanged,
this.onSubmitted,
this.onCancel,
this.showsCancelButton = false,
this.autofocus = false,
this.enabled = true,
this.searchIconColor,
this.clearIconColor,
this.cancelButtonColor,
this.cancelIcon,
this.cancelIconSize = 24,
this.textStyle,
this.placeholderStyle,
this.height = 44.0,
this.settings,
this.useOwnLayer = false,
this.quality,
});