flutter_recaptcha 0.0.3
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 aGlobalKey<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, aCustomPainterused 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.