GNSearchField constructor

const GNSearchField({
  1. Key? key,
  2. required TextEditingController controller,
  3. dynamic onChanged(
    1. String value
    )?,
  4. String? inputTextFontFamily,
  5. Widget? prefixIcon,
  6. Color? backgroundColor,
  7. double? placeholderTextSize,
  8. Color? placeholderTextColor,
  9. BoxDecoration? decoration,
  10. void onTap()?,
  11. String placeholder = StringConst.SEARCH,
  12. double? height,
  13. TextStyle? textStyle,
  14. TextStyle? placeholderStyle,
  15. Color? shadowColor,
  16. double? borderRadius,
  17. bool? enable,
  18. dynamic onSubmitted(
    1. String
    )?,
  19. FocusNode? focusNode,
})

Implementation

const GNSearchField(
    {super.key,
    required this.controller,
    this.onChanged,
    this.inputTextFontFamily,
    this.prefixIcon,
    this.backgroundColor,
    this.placeholderTextSize,
    this.placeholderTextColor,
    this.decoration,
    this.onTap,
    this.placeholder = StringConst.SEARCH,
    this.height,
    this.textStyle,
    this.placeholderStyle,
    this.shadowColor,
    this.borderRadius,
    this.enable,
    this.onSubmitted,
    this.focusNode});