Skip to main content

Flutter SDK

Didit Flutter SDK for identity verification

One Dart package for iOS and Android, with native screens for document capture, liveness and NFC.

$flutter pub add didit_sdk

Install

Install

Add the package from pub.dev.

flutter pub add didit_sdk

Pick exactly one package

PackageAutomatic captureNFCMinimum iOS
Default didit_sdk
Yes
Yes
iOS 15.0
didit_sdk_core
No
No
iOS 13.0
didit_sdk_autodetection
Yes
No
iOS 13.0
didit_sdk_nfc
No
Yes
iOS 15.0

NFC means reading the chip in a passport or ID card with the phone. Every package has the same Dart API. Import from the one you chose. The Android SDK resolves on its own, with no Maven setup.

Start

Start a verification

Pass the session token from your server and handle three results.

Three results

VerificationCompletedThe user finished. Read session.status.
VerificationCancelledThe user closed the flow.
VerificationFailedSomething went wrong. Show error.message.

startVerification returns a future. The SDK returns the status only. The full decision reaches your server by webhook.

Dart
import 'package:didit_sdk/sdk_flutter.dart';// Start verification with a session token from your backendfinal result = await DiditSdk.startVerification('your-session-token');switch (result) {  case VerificationCompleted(:final session):    if (session.status == VerificationStatus.approved) {      print('Identity verified!');    }  case VerificationCancelled():    print('User cancelled');  case VerificationFailed(:final error):    print('Error: ${error.message}');}

Requirements

What you need

Six things to check before you ship.

Flutter 3.41 and Dart 3.11Or later. Latest SDK version 4.15.4.
iOS 13.0 and laterNFC chip reading needs iOS 15.0.
Android 6.0 and laterThat is API 23, with Java 17.
NFC includedThe default package reads passport and ID chips. Set diditSdkAndroidNfcEnabled=false to build Android without it.
Info.plist keysNSCameraUsageDescription, NSMicrophoneUsageDescription and NSPhotoLibraryUsageDescription. Add NFCReaderUsageDescription for NFC.
54 languagesThe SDK uses the device language, with English as the fallback.

Questions

Questions about the Flutter SDK

Which Flutter versions does the SDK support?
Flutter 3.41 and Dart 3.11, or later. It runs on iOS 13.0 and later and on Android API 23 and later.
Does the Flutter SDK read NFC chips?
Yes. The default package, didit_sdk, reads passport and ID chips. On iOS it needs iOS 15.0. Use didit_sdk_core for a smaller app with no chip reading.
Does my API key go in the app?
No. The key stays on your server. Your server creates the session and the app only gets the session token.
Does one package cover iOS and Android?
Yes. The package wraps the native iOS and Android SDKs and exposes one Dart API.
How do I install the Didit Flutter SDK?
Run flutter pub add didit_sdk, or add didit_sdk: ^4.15.4 to pubspec.yaml and run flutter pub get. Import package:didit_sdk/sdk_flutter.dart. To ship a smaller binary, depend on exactly one variant package instead, such as didit_sdk_core, which exposes the same Dart API.
Why does pod install fail for the Flutter SDK on iOS?
With CocoaPods, the tag in the DiditSDK podspec URL in your Podfile must match the native iOS version your didit_sdk release pins; 4.15.4 pins native 4.15.4. When you upgrade didit_sdk, bump the tag too. When you switch variants, clean CocoaPods first with rm -rf Pods Podfile.lock. With Swift Package Manager no Podfile configuration is needed.
How do I build the Flutter app for Android without NFC?
Add diditSdkAndroidNfcEnabled=false to android/gradle.properties. That switches the dependency from me.didit:didit-sdk to me.didit:didit-sdk-core and drops the NFC reader module. With NFC on, the default, add pickFirsts += "META-INF/versions/9/OSGI-INF/MANIFEST.MF" under packaging resources, or the build fails with a mergeDebugJavaResource error.
Which permissions does the Flutter SDK need?
On iOS, add NSCameraUsageDescription, NSMicrophoneUsageDescription and NSPhotoLibraryUsageDescription to Info.plist, plus NFCReaderUsageDescription for chip reading. A missing required key makes iOS terminate the app when the SDK uses that resource. On Android, the permissions merge automatically and the SDK asks for camera access itself, so you do not request it before startVerification().
What can I pass to startVerificationWithWorkflow?
Only workflowId, vendorData and config. It creates the session from your workflow ID with no backend. For contact_details, expected_details or metadata, your backend calls the Create Session API and passes the returned session_token to DiditSdk.startVerification(). Versions before 3.4.0 exposed those parameters, but they were removed because the Unilink endpoint does not honour them.
How do I handle the Flutter SDK result and errors?
Both start methods return a Future<VerificationResult>, a sealed class: VerificationCompleted with session.status approved, pending or declined, VerificationCancelled, or VerificationFailed. Errors use the VerificationErrorType enum: sessionExpired, networkError, cameraAccessDenied, notInitialized (Android only), apiError, retryBlocked and unknown. Treat the webhook to your backend as the source of truth.
Can I test the Flutter SDK without real users or charges?
Yes. Run sessions under a Didit sandbox application. Sandbox sessions are never billed, every external provider is mocked, and the outcome comes from the scenario or magic value you choose, not from the captured images. Active liveness still runs the real capture, including through the native SDKs' web handoff, and webhooks carry "environment": "sandbox".

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Trusted by EU regulators

    After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Start

Add the package

Create an account, get your sandbox key and add the package.

Create accountRead the docs

Free sandbox. Credit applies to work-email sign-ups.