InputTextFiled constructor

const InputTextFiled({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? textFieldHint,
  4. bool isRequired = false,
  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 = borderColors,
  13. Widget? suffixIcon,
  14. Widget? prefixIcon,
  15. String? validator(
    1. String?
    )?,
  16. bool isPasswordField = false,
  17. dynamic onChanged(
    1. String
    )?,
  18. InputBorder? border,
  19. Iterable<String>? autofillHints,
  20. double padding = 10,
})

Implementation

const InputTextFiled({
  super.key,
  this.controller,
  this.textFieldHint,
  this.isRequired = false,
  this.onTap,
  this.readOnly = false,
  this.enabled = true,
  this.linesNumber = 1,
  this.keyboardType = TextInputType.emailAddress,
  this.isWrong = false,
  this.backgroundColor = Colors.white,
  this.borderColor = borderColors,
  this.suffixIcon,
  this.prefixIcon,
  this.validator,
  this.isPasswordField = false,
  this.onChanged,
  this.border,
  this.autofillHints,
  this.padding = 10,
});