hcaptcha_flutter 0.0.1 copy "hcaptcha_flutter: ^0.0.1" to clipboard
hcaptcha_flutter: ^0.0.1 copied to clipboard

HCaptcha for Flutter.

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