素材巴巴 > 程序开发 >

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

程序开发 2023-09-08 06:55:06

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-53yeAc0V-1672214764900)(null)]

aj_captcha_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(context: buildContext,barrierDismissible: barrierDismissible,builder: (BuildContext buildContext) {return BlockPuzzleCaptchaPage(onSuccess: (v) {//成功回调(回调为加密后内容,依据项目而定)debugPrint(v.toString());},onFail: () {},);},);}`
 

类说明

BlockPuzzleCaptchaPage 滑动验证

ClickWordCaptcha 文字点击验证

效果图

效果图


标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。