FormInputView constructor

const FormInputView({
  1. Key? key,
  2. String? hint,
  3. TextEditingController? controller,
  4. EdgeInsets? margin,
  5. String? textTitleInput,
  6. String? textSuggestion,
  7. FormFieldValidator<String>? validator,
  8. Function? onTap,
  9. dynamic onEditingComplete()?,
  10. TextInputAction? textInputAction,
  11. ValueChanged<String>? onChanged,
  12. TextStyle? textStyle,
  13. TextStyle? sugesStyle,
  14. Widget? prefix,
  15. TextInputType? keyboardType,
  16. InputBorder? focusBorder,
  17. InputBorder? disabledBorder,
  18. EdgeInsets? contentPadding,
  19. InputBorder? enabledBorder,
  20. Widget? prefixIcon,
  21. bool isPw = false,
  22. bool enable = true,
  23. TextStyle? hintStyle,
  24. Widget? suffixIcon,
  25. int? maxLength = TextField.noMaxLength,
  26. int? maxLines = 1,
  27. String? counterText = "",
  28. List<TextInputFormatter>? inputFormatter,
  29. bool? obscureText,
  30. TextStyle? errorStyle,
  31. bool requireTitle = false,
  32. bool filled = true,
  33. bool autofocus = false,
  34. bool leftBorder = false,
  35. bool showMaxLength = false,
  36. Color? fillColor = Colors.white,
  37. int? type = 1,
})

Implementation

const FormInputView({
  Key? key,
  this.hint,
  this.controller,
  this.margin,
  this.textTitleInput,
  this.textSuggestion,
  this.validator,
  this.onTap,
  this.onEditingComplete,
  this.textInputAction,
  this.onChanged,
  this.textStyle,
  this.sugesStyle,
  this.prefix,
  this.keyboardType,
  this.focusBorder,
  this.disabledBorder,
  this.contentPadding,
  this.enabledBorder,
  this.prefixIcon,
  this.isPw = false,
  this.enable = true,
  this.hintStyle,
  this.suffixIcon,
  this.maxLength = TextField.noMaxLength,
  this.maxLines = 1,
  this.counterText = "",
  this.inputFormatter,
  this.obscureText,
  this.errorStyle,
  this.requireTitle = false,
  this.filled = true,
  this.autofocus = false,
  this.leftBorder = false,
  this.showMaxLength = false,
  this.fillColor = Colors.white,
  this.type = 1,
}) : super(key: key);