flutter_tencent_captcha 0.1.0 icon indicating copy to clipboard operation
flutter_tencent_captcha: ^0.1.0 copied to clipboard

适用于 Flutter 的腾讯云验证码插件

flutter_tencent_captcha #

适用于 Flutter 的腾讯云验证码插件

pub version

屏幕截图 #

快速开始 #

安装 #

将此添加到包的 pubspec.yaml 文件中:

dependencies:
  flutter_tencent_captcha: ^0.1.0

您可以从命令行安装软件包:

$ flutter packages get

用法 #

获取 SDK 版本

String sdkVersion = await TencentCaptcha.sdkVersion;

初始化 SDK

TencentCaptcha.init('<appId>');

开始验证

详细参数请参见:https://cloud.tencent.com/document/product/1110/36841

TencentCaptchaConfig config = TencentCaptchaConfig(
  bizState: 'tencent-captcha',
  enableDarkMode: true,
);
await TencentCaptcha.verify(
  config: config,
  onLoaded: (dynamic data) {
    _addLog('onLoaded', data);
  },
  onSuccess: (dynamic data) {
    _addLog('onSuccess', data);
  },
  onFail: (dynamic data) {
    _addLog('onFail', data);
  },
);

许可证 #

MIT

3
likes
105
pub points
81%
popularity

Publisher

verified publisher iconleanflutter.org

适用于 Flutter 的腾讯云验证码插件

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_tencent_captcha