TxtFormInput constructor

const TxtFormInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. String? labelText,
  5. bool isPassword = false,
  6. bool enabled = true,
  7. bool autofocus = false,
  8. bool readOnly = false,
  9. bool isOptional = false,
  10. int? maxLength,
  11. int? maxLines,
  12. int? minLines,
  13. int? validationLength,
  14. Color? borderColor,
  15. Color? cursorColor,
  16. Color? fillColor,
  17. double? borderWidth,
  18. BorderRadius? borderRadius,
  19. EdgeInsetsGeometry? contentPadding,
  20. TxtInputBorderType? borderType,
  21. String? errorMessage,
  22. String? errorLengthMessage,
  23. String? validationConditionAddOn()?,
  24. double? height,
  25. String? fontFamily,
  26. String? labelFontFamily,
  27. String? hintFontFamily,
  28. double? labelTextSize,
  29. double? hintTextSize,
  30. Color? labelTextColor,
  31. Color? hintTextColor,
  32. FontStyle? labelFontStyle,
  33. FontStyle? hintFontStyle,
  34. FontWeight? labelFontWeight,
  35. FontWeight? hintFontWeight,
  36. double? labelPadding,
  37. TextStyle? style,
  38. TextAlign textAlign = TextAlign.start,
  39. ValueChanged<String>? onChanged,
  40. GestureTapCallback? onTap,
  41. TextInputType? keyboardType,
  42. TextInputAction? textInputAction,
  43. FocusNode? focusNode,
  44. VoidCallback? onEditingComplete,
  45. List<TextInputFormatter>? inputFormatters,
  46. Widget? preFix,
  47. Widget? postFix,
  48. bool showCursor = true,
})

Implementation

const TxtFormInput({
  super.key,
  this.controller,
  this.hintText,
  this.labelText,
  this.isPassword = false,
  this.enabled = true,
  this.autofocus = false,
  this.readOnly = false,
  this.isOptional = false,
  this.maxLength,
  this.maxLines,
  this.minLines,
  this.validationLength,
  this.borderColor,
  this.cursorColor,
  this.fillColor,
  this.borderWidth,
  this.borderRadius,
  this.contentPadding,
  this.borderType,
  this.errorMessage,
  this.errorLengthMessage,
  this.validationConditionAddOn,
  this.height,
  this.fontFamily,
  this.labelFontFamily,
  this.hintFontFamily,
  this.labelTextSize,
  this.hintTextSize,
  this.labelTextColor,
  this.hintTextColor,
  this.labelFontStyle,
  this.hintFontStyle,
  this.labelFontWeight,
  this.hintFontWeight,
  this.labelPadding,
  this.style,
  this.textAlign = TextAlign.start,
  this.onChanged,
  this.onTap,
  this.keyboardType,
  this.textInputAction,
  this.focusNode,
  this.onEditingComplete,
  this.inputFormatters,
  this.preFix,
  this.postFix,
  this.showCursor = true,
});