WInput constructor
const
WInput({
- Key? key,
- String? placeholder,
- String? className,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - VoidCallback? onTap,
- bool readOnly = false,
- bool obscureText = false,
- TextInputType? keyboardType,
- Widget? prefixIcon,
- Widget? suffixIcon,
- String? errorText,
- int? maxLines = 1,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- Color? borderColor,
- Color? focusedBorderColor,
- BorderRadius? borderRadius,
- double? borderWidth,
Implementation
const WInput({
super.key,
this.placeholder,
this.className,
this.controller,
this.onChanged,
this.onTap,
this.readOnly = false,
this.obscureText = false,
this.keyboardType,
this.prefixIcon,
this.suffixIcon,
this.errorText,
this.maxLines = 1,
this.padding,
this.backgroundColor,
this.borderColor,
this.focusedBorderColor,
this.borderRadius,
this.borderWidth,
});