Documentation Index
Fetch the complete documentation index at: https://docs.smartcomply.com/llms.txt
Use this file to discover all available pages before exploring further.
SmartComply Flutter SDK
A powerful Flutter package for SmartComply identity verification and facial liveness detection. Our SDK delivers a drop-in UI that seamlessly orchestrates BVN/NIN verification (Nigeria), Document parsing (International), and video-based ML Kit facial liveness challenges.Features
- Drop-in UI Integration —
sdk.open(context)launches our polished UI module natively on top of your app. - Dynamic Client Configuration — Fetches available document types securely from your SmartComply Dashboard rules.
- One-Time Use Policy System — Verifications are securely bound utilizing a single-use parameter.
- Identity Onboarding — Verifies BVN & NIN directly via national APIs, or scans Passports & National ID Cards.
- Liveness Detection — Animated face action challenges (Blinking, Turning Head) backed by Google ML Kit.
Installation
In your app’spubspec.yaml:
flutter pub get.
Platform Setup
Android
Inandroid/app/src/main/AndroidManifest.xml, ensure your app has permission to access the camera:
android/app/build.gradle:
iOS
Inios/Runner/Info.plist, declare the camera usage description:
Quick Start (Recommended)
The simplest way to integrate our SDK is to use the full wrapper widget. Upon launching, the SDK will automatically prompt the user for their Client ID.- Shows an initial Client ID input screen.
- Identifies the user’s origin and prompts for ID types (BVN, NIN, Passport, etc).
- Requests camera permissions.
- Guides the user through liveness face capturing.
- Securely revokes the session to enforce single-use policy.
Advanced Usage (Headless Architecture)
If you are building your own UI from scratch instead of using our wrapper, you must capture theClient ID manually and trigger the endpoints yourself:
Supported Liveness Actions
Our engine can dynamically challenge users based on your Dashboard rules:| Action | Enum Value | Detection Method |
|---|---|---|
| Blink | ChallengeAction.blink | ML Kit eye open probability tracking |
| Turn left | ChallengeAction.turnLeft | ML Kit headEulerAngleY analysis |
| Turn right | ChallengeAction.turnRight | ML Kit headEulerAngleY analysis |
| Turn head | ChallengeAction.turnHead | ML Kit headEulerAngleY analysis |
| Open mouth | ChallengeAction.openMouth | ML Kit classification |