Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

HCaptcha for Flutter.

License

Notifications You must be signed in to change notification settings

FlutterFleet/hcaptcha_flutter

Repository files navigation

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',
});