InputField constructor

const InputField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required InputType type,
  4. required String label,
  5. String? infoText,
  6. bool? info,
  7. String? initialValue,
  8. bool readOnly = false,
  9. bool isDisabled = false,
  10. bool isRequired = false,
  11. bool charCount = false,
  12. bool editable = false,
  13. String? innerLabel,
  14. String? helpText,
  15. TooltipTriggerMode triggerMode = TooltipTriggerMode.tap,
  16. bool preferToolTipBelow = false,
  17. IconData? suffixIcon,
  18. TextInputType keyboardType = TextInputType.text,
  19. void onError(
    1. String?
    )?,
  20. List<Validator>? validations,
  21. void onChange(
    1. String
    )?,
  22. String? errorMessage,
  23. List<TextInputFormatter>? inputFormatters,
  24. TextAreaScroll textAreaScroll = TextAreaScroll.smart,
  25. String? suffixText,
  26. String? prefixText,
  27. DateTime? initialDate,
  28. DateTime? lastDate,
  29. DateTime? firstDate,
  30. void onSuffixTap(
    1. String
    )?,
  31. int step = 1,
  32. int minValue = 0,
  33. int maxValue = 100,
})

Implementation

const InputField({
  Key? key,
  required this.controller,
  required this.type,
  required this.label,
  this.infoText,
  this.info,
  this.initialValue,
  this.readOnly = false,
  this.isDisabled = false,
  this.isRequired = false,
  this.charCount = false,
  this.editable = false,
  this.innerLabel,
  this.helpText,
  this.triggerMode = TooltipTriggerMode.tap,
  this.preferToolTipBelow = false,
  this.suffixIcon,
  this.keyboardType = TextInputType.text,
  this.onError,
  this.validations,
  this.onChange,
  this.errorMessage,
  this.inputFormatters,
  this.textAreaScroll = TextAreaScroll.smart,
  this.suffixText,
  this.prefixText,
  this.initialDate,
  this.lastDate,
  this.firstDate,
  this.onSuffixTap,
  this.step = 1,
  this.minValue = 0,
  this.maxValue = 100,
}) : super(key: key);