YaruSearchField constructor
const
YaruSearchField({
- Key? key,
- String? text,
- void onSubmitted(
- String? value
- String? hintText,
- double height = kYaruTitleBarItemHeight,
- EdgeInsets contentPadding = const EdgeInsets.only(bottom: 10, top: 10, right: 15, left: 15),
- bool autofocus = true,
- void onClear()?,
- void onChanged(
- String value
- Radius radius = const Radius.circular(kYaruTitleBarItemHeight),
- YaruSearchFieldStyle style = YaruSearchFieldStyle.filled,
- Color? borderColor,
- Color? fillColor,
- TextEditingController? controller,
- FocusNode? focusNode,
- Widget? clearIcon,
Implementation
const YaruSearchField({
super.key,
this.text,
this.onSubmitted,
this.hintText,
this.height = kYaruTitleBarItemHeight,
this.contentPadding = const EdgeInsets.only(
bottom: 10,
top: 10,
right: 15,
left: 15,
),
this.autofocus = true,
this.onClear,
this.onChanged,
this.radius = const Radius.circular(kYaruTitleBarItemHeight),
this.style = YaruSearchFieldStyle.filled,
this.borderColor,
this.fillColor,
this.controller,
this.focusNode,
this.clearIcon,
});