flutter_tencent_captcha 0.1.0 copy "flutter_tencent_captcha: ^0.1.0" to clipboard
flutter_tencent_captcha: ^0.1.0 copied to clipboard

discontinued
outdated

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

flutter_tencent_captcha #

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

pub version

屏幕截图 #

[./screenshots/flutter_tencent_captcha-android.jpeg] [./screenshots/flutter_tencent_captcha-ios.png]

快速开始 #

安装 #

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

dependencies:
  flutter_tencent_captcha: ^0.1.0
copied to clipboard

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

$ flutter packages get
copied to clipboard

用法 #

获取 SDK 版本

String sdkVersion = await TencentCaptcha.sdkVersion;
copied to clipboard

初始化 SDK

TencentCaptcha.init('<appId>');
copied to clipboard

开始验证

详细参数请参见: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);
  },
);
copied to clipboard

许可证 #

MIT

6
likes
0
points
103
downloads

Publisher

verified publisherlearn-flutter.dev

Weekly Downloads

2024.09.17 - 2025.04.01

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_tencent_captcha