TxtFormInput constructor
const
TxtFormInput({
- Key? key,
- TextEditingController? controller,
- String? hintText,
- String? labelText,
- bool isPassword = false,
- bool enabled = true,
- bool autofocus = false,
- bool readOnly = false,
- bool isOptional = false,
- int? maxLength,
- int? maxLines,
- int? minLines,
- int? validationLength,
- Color? borderColor,
- Color? cursorColor,
- Color? fillColor,
- double? borderWidth,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- TxtInputBorderType? borderType,
- String? errorMessage,
- String? errorLengthMessage,
- String? validationConditionAddOn()?,
- double? height,
- String? fontFamily,
- String? labelFontFamily,
- String? hintFontFamily,
- double? labelTextSize,
- double? hintTextSize,
- Color? labelTextColor,
- Color? hintTextColor,
- FontStyle? labelFontStyle,
- FontStyle? hintFontStyle,
- FontWeight? labelFontWeight,
- FontWeight? hintFontWeight,
- double? labelPadding,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- VoidCallback? onEditingComplete,
- List<
TextInputFormatter> ? inputFormatters, - Widget? preFix,
- Widget? postFix,
- 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,
});