YaruSearchField constructor

const YaruSearchField({
  1. Key? key,
  2. String? text,
  3. void onSubmitted(
    1. String? value
    )?,
  4. String? hintText,
  5. double height = kYaruTitleBarItemHeight,
  6. EdgeInsets contentPadding = const EdgeInsets.only(bottom: 10, top: 10, right: 15, left: 15),
  7. bool autofocus = true,
  8. void onClear()?,
  9. void onChanged(
    1. String value
    )?,
  10. Radius radius = const Radius.circular(kYaruTitleBarItemHeight),
  11. YaruSearchFieldStyle style = YaruSearchFieldStyle.filled,
  12. Color? borderColor,
  13. Color? fillColor,
  14. TextEditingController? controller,
  15. FocusNode? focusNode,
  16. 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,
});