TxtFormInput<T> constructor
const
TxtFormInput<T> ({
- Key? key,
- TextEditingController? controller,
- String? errorMessage,
- String? errorLengthMessage,
- int? maxLines,
- int? minLines,
- int? maxLength,
- List<
TextInputFormatter> ? inputFormatters, - TextAlign textAlign = TextAlign.start,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- double? textSize,
- double? hintTextSize,
- Color? textColor,
- ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- bool isPassword = false,
- TextInputType? keyboardType = TextInputType.text,
- TextInputAction? textInputAction,
- VoidCallback? onEditingComplete,
- FocusNode? focusNode,
- String? hintText = '',
- Color? hintTextColor,
- bool enabled = true,
- bool? hasLabel,
- bool? hasBorder,
- bool? hasLabelOnTop,
- bool? showLabelStat,
- Widget? postFix,
- Widget? preFix,
- TextStyle? postFixStyle,
- InputDecoration? decoration,
- FormFieldValidator<
String> ? validator, - GlobalKey<
FormState> ? formKey, - bool isOptional = false,
- int? validationLength,
- String? labelText,
- double? labelPadding,
- double? radius,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- Color? fillColor,
- Color? borderColor,
- double borderWidth = 2,
- bool autofocus = false,
- bool removeAllBorders = false,
- String? prefixText,
- double? prefixTextSize,
- double? postFixTextSize,
- Color? prefixTextColor,
- Color? postFixTextColor,
- double? height,
- TextStyle? labelStyle,
- TextStyle? hintStyle,
- TextStyle? style,
- TextStyle? prefixStyle,
- bool hasCounter = false,
- BorderSide? borderSide,
- bool? appDirectionLeftToRight,
- bool? showCursor,
- bool? readOnly,
- bool? ignoringWithOnTap,
- String? validationConditionAddOn()?,
- Color? cursorColor,
- double errorHeight = 23,
- bool showDropDown = false,
- List<
DropdownMenuItem< ? listDropDown,T> > - T? selectedDropDownValue,
- dynamic onDropDownChanged(
- T? val
Implementation
const TxtFormInput({
super.key,
this.controller,
this.errorMessage,
this.errorLengthMessage,
this.maxLines,
this.minLines,
this.maxLength,
this.inputFormatters,
this.textAlign = TextAlign.start,
this.textCapitalization = TextCapitalization.sentences,
this.textSize,
this.hintTextSize,
this.textColor,
this.onChanged,
this.onTap,
this.isPassword = false,
this.keyboardType = TextInputType.text,
this.textInputAction,
this.onEditingComplete,
this.focusNode,
this.hintText = '',
this.hintTextColor,
this.enabled = true,
this.hasLabel,
this.hasBorder,
this.hasLabelOnTop,
this.showLabelStat,
this.postFix,
this.preFix,
this.postFixStyle,
this.decoration,
this.validator,
this.formKey,
this.isOptional = false,
this.validationLength,
this.labelText,
this.labelPadding,
this.radius,
this.borderRadius,
this.contentPadding,
this.fillColor,
this.borderColor,
this.borderWidth = 2,
this.autofocus = false,
this.removeAllBorders = false,
this.prefixText,
this.prefixTextSize,
this.postFixTextSize,
this.prefixTextColor,
this.postFixTextColor,
this.height,
this.labelStyle,
this.hintStyle,
this.style,
this.prefixStyle,
this.hasCounter = false,
this.borderSide,
this.appDirectionLeftToRight,
this.showCursor,
this.readOnly,
this.ignoringWithOnTap,
this.validationConditionAddOn,
this.cursorColor,
this.errorHeight = 23,
this.showDropDown = false,
this.listDropDown,
this.selectedDropDownValue,
this.onDropDownChanged,
});