InputText constructor
const
InputText({
- Key? key,
- FocusNode? focusNode,
- TextEditingController? controller,
- String? label,
- String? hintText,
- String? errorText,
- int? maxLength,
- int? maxLines = 1,
- bool obscureText = false,
- bool isPasswordField = false,
- bool enableCounter = false,
- bool readOnly = false,
- String? prefixIcon,
- String? suffixIcon,
- VoidCallback? onSuffixTap,
- Widget? prefix,
- Widget? suffix,
- List<
String> ? autoFillHints, - TextInputType? keyboardType,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onEditingComplete,
- TextInputAction? textInputAction,
- DecorationBuilder? decorationBuilder,
- TextStyle? textStyle,
- EdgeInsetsGeometry? inputPadding,
- double? cursorHeight,
- double cursorWidth = 2.0,
- 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,
});