flutter_recaptcha 0.0.3 copy "flutter_recaptcha: ^0.0.3" to clipboard
flutter_recaptcha: ^0.0.3 copied to clipboard

A lightweight Flutter widget that generates and validates distorted CAPTCHA images with background noise, to secure forms and authentication flows without any external service.

0.0.3 #

  • CaptchaWidgetState.regenerate() is now public, so a new CAPTCHA can be requested externally via a GlobalKey<CaptchaWidgetState>.
  • Background CAPTCHA images are now properly disposed (ui.Image.dispose()) when a new CAPTCHA is generated or the widget is removed, preventing a memory leak on repeated regeneration.
  • Internal cleanup: doc comments added to all public API members, magic numbers replaced with named constants, and an internal relative import used instead of a package: self-import.

0.0.1 #

Initial release.

  • Added CaptchaWidget, a self-contained widget that renders a distorted, noisy CAPTCHA image and a text field for validation.
  • Added CaptchaPainter, a CustomPainter used to draw the CAPTCHA text with random angles over a noisy background.
  • Added an auto-regenerate refresh button and a manual "refresh" callback via onVerified.
4
likes
160
points
189
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter widget that generates and validates distorted CAPTCHA images with background noise, to secure forms and authentication flows without any external service.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_recaptcha