CustomInputField constructor

const CustomInputField({
  1. Key? key,
  2. TextEditingController? controller,
  3. bool obscureText = false,
  4. double borderRadius = 12.0,
  5. double? height,
  6. int maxLines = 1,
  7. bool readOnly = false,
  8. FocusNode? focusNode,
  9. String? hintText,
  10. String? labelText,
  11. String? errorText,
  12. String? initialValue,
  13. String? helperText,
  14. Color? borderColor = Colors.grey,
  15. Color? errorBorderColor = Colors.red,
  16. Color? fillColor,
  17. bool? filled,
  18. Widget? prefixWidget,
  19. Widget? suffixWidget,
  20. VoidCallback? suffixTap,
  21. TextInputType keyBoardType = TextInputType.text,
  22. dynamic onChanged(
    1. String
    )?,
  23. FormFieldValidator<String>? validator,
})

Implementation

const CustomInputField({
  super.key,
  this.controller,
  this.obscureText = false,
  this.borderRadius = 12.0,
  this.height,
  this.maxLines = 1,
  this.readOnly = false,
  this.focusNode,
  this.hintText,
  this.labelText,
  this.errorText,
  this.initialValue,
  this.helperText,
  this.borderColor = Colors.grey,
  this.errorBorderColor = Colors.red ,
  this.fillColor,
  this.filled,
  this.prefixWidget,
  this.suffixWidget,
  this.suffixTap,
  this.keyBoardType = TextInputType.text,
  this.onChanged,
  this.validator,
});