captcha_view 1.0.0
captcha_view: ^1.0.0 copied to clipboard
A customizable Flutter package providing text captchas with distorted characters and slide-to-verify puzzle captchas.
1.0.0 - 2025-02-23 #
- Added full multi-platform support (Android, iOS, Web, macOS, Windows, Linux).
- Added pure vector programmatic puzzle styles (
PuzzleStyle.puzzle,PuzzleStyle.square,PuzzleStyle.circle) - zero asset dependencies required. - Added custom
imageProvidersupport for background puzzle verification. - Added puzzle piece stroke customization (
puzzleStrokeColor,puzzleStrokeWidth) and 3D drop shadow. - Optimized text captcha disturbance lines with smooth Bézier watermark curves (
CaptchaMaskPainter). - Added comprehensive Chinese documentation (
README_ZH.md) and English/Chinese language toggle links.
0.2.0 - 2025-02-23 #
- Added
SlideVerifyView.show(context)static helper for showing puzzle captchas in a dialog modal. - Added customizable strings and localization options to
SlideVerifyView(title,sliderText,successTextBuilder). - Added
onSuccess,onFail, andonClosecallbacks toSlideVerifyView. - Added
onTaprefresh callback toCaptchaView. - Added
excludeSimilaroption toCaptchaView.generateTextto omit easily confused characters (0,O,1,I,l). - Added
customAllowedCharactersoption toCaptchaView.generateText. - Optimized
CaptchaMaskPainterrendering performance by removing repeated allocations insidepaint(). - Updated LICENSE to standard MIT License.
- Added comprehensive English documentation in README.md.
0.1.0 - 2026-08-20 #
- Migrated to Dart 3 and the latest Flutter with sound null safety.
- Replaced the removed
Theme.of(context).accentColorwithcolorScheme.secondary. - Replaced
@requiredwith therequiredkeyword. - Replaced the deprecated
Color.withOpacitywithColor.withValues. - Fixed the asset declarations to match the actual asset paths.
- Replaced the missing
ic_checked.pngasset with a Material icon. - Moved the implementation files to
lib/srcand added a barrel file. - Added an
exampleapp. - Added unit and widget tests.
- Improved the API documentation.
0.0.1 - 2021-01-22 #
- Initial release.
