1 Star 0 Fork 3

Silence丶J / aj_captcha_flutter

forked from bastResult / aj_captcha_flutter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
bastResult 提交于 2022-12-28 07:52 . update README.md.

Pub

aj_captcha_flutter

flutter 滑动验证码与文字点击验证码组件

后端采用的是 https://github.com/anji-plus/captcha https://gitee.com/anji-plus/captcha

Getting Started

    aj_captcha_flutter: ^0.0.1
 //项目启动时设置接口地址 
 AJCaptchaInit.init("http://127.0.0.1:80/");
 
 //调用实例
 void loadingBlockPuzzle(BuildContext buildContext,
      {barrierDismissible = true}) {
    showDialog<void>(
      context: buildContext,
      barrierDismissible: barrierDismissible,
      builder: (BuildContext buildContext) {
        return BlockPuzzleCaptchaPage(
          onSuccess: (v) {
            //成功回调(回调为加密后内容,依据项目而定)
            debugPrint(v.toString());
          },
          onFail: () {},
        );
      },
    );
  }`

类说明

BlockPuzzleCaptchaPage 滑动验证

ClickWordCaptcha 文字点击验证

效果图

img.png

Dart
1
https://gitee.com/SilenceJR/aj_captcha_flutter.git
git@gitee.com:SilenceJR/aj_captcha_flutter.git
SilenceJR
aj_captcha_flutter
aj_captcha_flutter
master

搜索帮助