HCaptcha for Flutter

Pub Version

Getting Started

HCaptchaFlutter.setMethodCallHandler((MethodCall call) async {
  if (kDebugMode) {
    print('method: ${call.method}, arguments: ${call.arguments}');
  }

  if (call.method == 'success' && call.arguments != null) {
    final res = call.arguments as Map<dynamic, dynamic>;
    final token = res['token'] as String?;
  }
});
await HCaptchaFlutter.show({
  'siteKey': 'your site key',
  'language': 'en',
});

Libraries

hcaptcha_flutter