aj_captcha_flutter 0.0.1 copy "aj_captcha_flutter: ^0.0.1" to clipboard
aj_captcha_flutter: ^0.0.1 copied to clipboard

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

aj_captcha_flutter #

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

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

Getting Started #

 //项目启动时设置接口地址 
 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

1
likes
100
pub points
56%
popularity

Publisher

unverified uploader

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

Homepage

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

convert, crypto, dio, encrypt, flutter, flutter_web_plugins, plugin_platform_interface, steel_crypt

More

Packages that depend on aj_captcha_flutter