gocaptcha 0.0.1+5
gocaptcha: ^0.0.1+5 copied to clipboard
A flutter widget for gocaptcha where github repo is "gocaptcha:https://github.com/wenlng/go-captcha"
gocaptcha #
flutter实现gocaptcha图形验证码:https://github.com/wenlng/go-captcha
Getting Started #
安装依赖: flutter pub add gocaptcha #
使用: #
import 'package:gocaptcha/gocaptcha.dart';
showDialog(
context: context,
builder: (_) => SlideCaptcha(
model: SlideCaptchaModel.fromJson(data),
onEnd: (position) {
///TODO 获取到位置后验证 #Verify after obtaining the location
},
),
);
flutter pub publish --server=https://pub.dartlang.org
支持的类型:
- 滑动验证 ✅
- 点击验证 ×
- 随机字符验证 ×
- 随机图片验证 ×