DingXiang Captcha for Flutter

Pub Version

Getting Started

DxCaptchaFlutter.setMethodCallHandler((MethodCall call) async {
  if (call.method == 'success' && call.arguments != null) {
    final res = call.arguments as Map<dynamic, dynamic>;
    final dxToken = res['token'] as String?;
  } else if (call.method == 'error') {
    
  }
});
await DxCaptchaFlutter.show({
  'appId': '26ba29b6a3744dbebee8e46fbe3f311a',
  'language': 'en',
});

Libraries

dxcaptcha_flutter