WInput constructor

const WInput({
  1. Key? key,
  2. String? placeholder,
  3. String? className,
  4. TextEditingController? controller,
  5. ValueChanged<String>? onChanged,
  6. VoidCallback? onTap,
  7. bool readOnly = false,
  8. bool obscureText = false,
  9. TextInputType? keyboardType,
  10. Widget? prefixIcon,
  11. Widget? suffixIcon,
  12. String? errorText,
  13. int? maxLines = 1,
  14. EdgeInsetsGeometry? padding,
  15. Color? backgroundColor,
  16. Color? borderColor,
  17. Color? focusedBorderColor,
  18. BorderRadius? borderRadius,
  19. 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,
});