SearchTextField constructor

const SearchTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String textFieldHint,
  4. required bool isRequired,
  5. Function? onTap,
  6. bool readOnly = false,
  7. bool enabled = true,
  8. int linesNumber = 1,
  9. TextInputType keyboardType = TextInputType.emailAddress,
  10. bool isWrong = false,
  11. Color backgroundColor = Colors.white,
  12. Color borderColor = empty,
  13. Widget? suffixIcon,
  14. Widget? prefixIcon,
  15. String? validator(
    1. String?
    )?,
  16. bool isPasswordField = false,
  17. dynamic onChanged(
    1. String
    )?,
})

Implementation

const SearchTextField({
  super.key,
  required this.controller,
  required this.textFieldHint,
  required this.isRequired,
  this.onTap,
  this.readOnly = false,
  this.enabled = true,
  this.linesNumber = 1,
  this.keyboardType = TextInputType.emailAddress,
  this.isWrong = false,
  this.backgroundColor = Colors.white,
  this.borderColor = empty,
  this.suffixIcon,
  this.prefixIcon,
  this.validator,
  this.isPasswordField = false,
  this.onChanged,
});