InputText constructor

const InputText({
  1. Key? key,
  2. FocusNode? focusNode,
  3. TextEditingController? controller,
  4. String? label,
  5. String? hintText,
  6. String? errorText,
  7. int? maxLength,
  8. int? maxLines = 1,
  9. bool obscureText = false,
  10. bool isPasswordField = false,
  11. bool enableCounter = false,
  12. bool readOnly = false,
  13. String? prefixIcon,
  14. String? suffixIcon,
  15. VoidCallback? onSuffixTap,
  16. Widget? prefix,
  17. Widget? suffix,
  18. List<String>? autoFillHints,
  19. TextInputType? keyboardType,
  20. ValueChanged<String>? onChanged,
  21. ValueChanged<String>? onSubmitted,
  22. VoidCallback? onEditingComplete,
  23. TextInputAction? textInputAction,
  24. DecorationBuilder? decorationBuilder,
  25. TextStyle? textStyle,
  26. EdgeInsetsGeometry? inputPadding,
  27. double? cursorHeight,
  28. double cursorWidth = 2.0,
  29. double? borderRadius,
})

Implementation

const InputText({
  super.key,
  this.focusNode,
  this.controller,
  this.label,
  this.hintText,
  this.errorText,
  this.maxLength,
  this.maxLines = 1,
  this.obscureText = false,
  this.isPasswordField = false,
  this.enableCounter = false,
  this.readOnly = false,
  this.prefixIcon,
  this.suffixIcon,
  this.onSuffixTap,
  this.prefix,
  this.suffix,
  this.autoFillHints,
  this.keyboardType,
  this.onChanged,
  this.onSubmitted,
  this.onEditingComplete,
  this.textInputAction,
  this.decorationBuilder,
  this.textStyle,
  this.inputPadding,
  this.cursorHeight,
  this.cursorWidth = 2.0,
  this.borderRadius,
});