g_recaptcha_v3
1.1.0, released 5 months ago by an unverified publisher
Google reCAPTCHA v3 plugin for Flutter Web.
What it does
Allows Flutter web apps to initialize Google reCAPTCHA v3 and generate tokens to protect websites from spam and abuse. It automatically injects the necessary script tag and provides methods for handling execution tokens, badge visibility, and error management.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter web application
- You need to protect web forms or user actions against spam and bots using reCAPTCHA v3
- You require reCAPTCHA Enterprise or recaptcha.net fallback support on the web
Skip it when
- You are targeting non-web platforms primarily (iOS, Android)
- You need reCAPTCHA v2 checkbox widgets instead of invisible v3 tokens
Strengths
- Automatically injects the reCAPTCHA script tag without requiring manual index.html modifications
- Supports WebAssembly (WASM) builds and reCAPTCHA Enterprise
- Provides advanced options like badge hiding, custom badge languages, and CSP nonces
Weaknesses
- Platform support is strictly limited to Flutter Web
- Requires manual configuration and site keys set up in the Google reCAPTCHA admin console
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Create keys in the Google reCAPTCHA console, add the package to pubspec.yaml, and call GRecaptchaV3.ready with your site key.
import 'package:g_recaptcha_v3/g_recaptcha_v3.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
if (kIsWeb) {
bool ready = await GRecaptchaV3.ready("<your Recaptcha site key>");
}
runApp(const MyApp());
}Alternatives
Packages that do the same job and could replace g_recaptcha_v3.
- recaptcha_enterprise_flutter
A Flutter plugin for reCAPTCHA Enterprise security protection.
84Compare - googleapis_auth
Obtain Access credentials and authenticated HTTP clients for Google APIs using OAuth 2.0.
91Compare - google_sign_in_ios
iOS and macOS implementation of Google Sign-In for Flutter
90Compare - google_sign_in_android
Android implementation of the google_sign_in plugin
88Compare
Works with
Packages commonly used together with g_recaptcha_v3: ones it builds on, ones built on it, and its own family.