SearchBarWidget constructor

const SearchBarWidget({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String hintText,
  4. TextInputType? textInputType,
  5. int? maxLength,
  6. required dynamic onChanged(
    1. String
    ),
  7. String? validator(
    1. String?
    )?,
  8. Widget? prefixIcon,
  9. Widget? suffixIcon,
  10. FocusNode? focusNode,
  11. EdgeInsetsGeometry? contentPadding,
  12. Color? fillColor,
  13. Color? borderColor,
  14. Color? hintTextColor,
  15. double? height,
  16. EdgeInsetsGeometry? padding,
  17. double? borderRadius,
  18. double? textSize,
  19. double? iconSize,
})

Implementation

const SearchBarWidget({
  super.key,
  required this.controller,
  required this.hintText,
  this.textInputType,
  this.maxLength,
  required this.onChanged,
  this.validator,
  this.prefixIcon,
  this.suffixIcon,
  this.focusNode,
  this.contentPadding,
  this.fillColor,
  this.borderColor,
  this.hintTextColor,
  this.height,
  this.padding,
  this.borderRadius,
  this.textSize,
  this.iconSize,
});