Skip to main content
vouchmark_widget is a Dart package that renders the Vouchmark verification flow inside a native WebView (webview_flutter), bridging events back to Dart through a JavaScript channel.

Installation

Add the package with the Flutter CLI:
This adds vouchmark_widget to your pubspec.yaml (current version 1.0.0).

Platform setup

Android — set minSdkVersion 21 in android/app/build.gradle. iOS — requires iOS 13+. Add camera permissions to ios/Runner/Info.plist:

Quick start

Configuration

VouchmarkWidget parameters

Call showVouchmarkModal to push the widget as a full-screen dialog route. It returns a Future<VouchmarkResult?> that resolves with the result when verification succeeds, or null if the user dismisses it:

Models

Signed sessions

Generate the session token on your backend and pass it to the widget:

Platform support