Skip to content
pubscout

yandex_smart_captcha

9.0.4, released 4 days ago by yomko.dev

Flutter wrapper for Yandex SmartCaptcha on Android, iOS, and web.

WASM-ready
$ flutter pub add yandex_smart_captcha
Source repository

What it does

Integrates Yandex SmartCaptcha into Flutter applications using native WebViews on mobile and DOM elements with JavaScript interop on the web. Exposes a streamlined API for captcha configuration, execution, resetting, and lifecycle callbacks.

AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to protect your Flutter mobile or web app with Yandex SmartCaptcha.
  • You want an easy way to handle captcha challenges and receive verification tokens.

Skip it when

  • You require a non-Yandex captcha provider like Google reCAPTCHA or hCaptcha.
  • You are running in an environment without WebView support on mobile platforms.

Strengths

  • Supports Android, iOS, and web (including WebAssembly).
  • Provides both declarative widget configuration and an imperative controller for execution and resetting.
  • Automatically injects the Yandex script on the web so manual index.html modifications are not required.

Weaknesses

  • Dependent on platform-specific WebView implementations on mobile.
  • Some configuration parameters are ignored on web.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires a client key from Yandex SmartCaptcha. No manual index.html script injection is required for web.

YandexSmartCaptcha(
  config: CaptchaConfig(
    clientKey: 'your-client-key',
  ),
  onChallengeSolved: (token) {
    // Handle the solved captcha token.
  },
)

Works with

Packages commonly used together with yandex_smart_captcha: ones it builds on, ones built on it, and its own family.