ResponsiveInput constructor

const ResponsiveInput({
  1. Key? key,
  2. String? labelText,
  3. String? hintText,
  4. double fontSize = 14,
  5. String? initialValue,
  6. TextEditingController? controller,
  7. bool enabled = true,
  8. bool obscureText = false,
  9. AutovalidateMode? autoValidateMode,
  10. TextStyle? textStyle,
  11. TextStyle? hintStyle,
  12. TextStyle? errorStyle,
  13. TextStyle? labelStyle,
  14. TextInputType keyboardType = TextInputType.text,
  15. String? validator(
    1. String?
    )?,
  16. int maxLength = 50,
  17. List<TextInputFormatter>? inputFormatter,
  18. void onSaved(
    1. String?
    )?,
  19. void onChanged(
    1. String
    )?,
  20. bool isDense = true,
  21. IconData? suffixIconData,
  22. IconData? prefixIconData,
  23. Color? iconColor,
  24. Color? prefixIconColor,
  25. void onIconPressed()?,
  26. bool readOnly = false,
  27. void onTap()?,
})

Implementation

const ResponsiveInput({
  Key? key,
  this.labelText,
  this.hintText,
  this.fontSize = 14,
  this.initialValue,
  this.controller,
  this.enabled = true,
  this.obscureText = false,
  this.autoValidateMode,
  this.textStyle,
  this.hintStyle,
  this.errorStyle,
  this.labelStyle,
  this.keyboardType = TextInputType.text,
  this.validator,
  this.maxLength = 50,
  this.inputFormatter,
  this.onSaved,
  this.onChanged,
  this.isDense = true,
  this.suffixIconData,
  this.prefixIconData,
  this.iconColor,
  this.prefixIconColor,
  this.onIconPressed,
  this.readOnly = false,
  this.onTap,
}) : super(key: key);