# aj_captcha_flutter **Repository Path**: showyyj/aj_captcha_flutter ## Basic Information - **Project Name**: aj_captcha_flutter - **Description**: flutter 滑动验证码与文字点击验证码组件 - **Primary Language**: Dart - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 6 - **Created**: 2022-12-28 - **Last Updated**: 2025-05-16 ## Categories & Tags **Categories**: captcha **Tags**: None ## README [![Pub](https://img.shields.io/pub/v/aj_captcha_flutter.svg)](https://pub.flutter-io.cn/packages/aj_captcha_flutter) # aj_captcha_flutter flutter 滑动验证码与文字点击验证码组件 后端采用的是 https://github.com/anji-plus/captcha https://gitee.com/anji-plus/captcha ## Getting Started ```yaml aj_captcha_flutter: ^0.0.1 ``` ``` dart //项目启动时设置接口地址 AJCaptchaInit.init("http://127.0.0.1:80/"); //调用实例 void loadingBlockPuzzle(BuildContext buildContext, {barrierDismissible = true}) { showDialog( context: buildContext, barrierDismissible: barrierDismissible, builder: (BuildContext buildContext) { return BlockPuzzleCaptchaPage( onSuccess: (v) { //成功回调(回调为加密后内容,依据项目而定) debugPrint(v.toString()); }, onFail: () {}, ); }, ); }` ``` ## 类说明 BlockPuzzleCaptchaPage 滑动验证 ClickWordCaptcha 文字点击验证 ## 效果图 ![img.png](img.png)