InputField constructor
const
InputField({
- Key? key,
- required TextEditingController controller,
- required InputType type,
- required String label,
- String? infoText,
- bool? info,
- String? initialValue,
- bool readOnly = false,
- bool isDisabled = false,
- bool isRequired = false,
- bool charCount = false,
- bool editable = false,
- String? innerLabel,
- String? helpText,
- TooltipTriggerMode triggerMode = TooltipTriggerMode.tap,
- bool preferToolTipBelow = false,
- IconData? suffixIcon,
- TextInputType keyboardType = TextInputType.text,
- void onError()?,
- List<
Validator> ? validations, - void onChange()?,
- String? errorMessage,
- List<
TextInputFormatter> ? inputFormatters, - TextAreaScroll textAreaScroll = TextAreaScroll.smart,
- String? suffixText,
- String? prefixText,
- DateTime? initialDate,
- DateTime? lastDate,
- DateTime? firstDate,
- void onSuffixTap()?,
- int step = 1,
- int minValue = 0,
- 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);