Skip to main content

The Developer's Guide to Identity Verification with Didit Flutter SDK

Integrating robust identity verification into Flutter applications is crucial for security and compliance. This guide explores how the Didit Flutter SDK streamlines ID verification, liveness detection, and NFC reading, offering.

The Developer's Guide to Identity Verification with Didit Flutter SDK

Contents

In this guide

Jump to the part you need.

Seamless Flutter IntegrationThe Didit Flutter SDK provides a Dart API with native iOS and Android SDKs, enabling developers to quickly integrate advanced identity verification directly into their Flutter applications.

Comprehensive Verification CapabilitiesFrom ID Verification and Passive & Active Liveness to NFC Verification (ePassport/eID) and Face Matching, the SDK supports a wide range of essential identity checks for robust security.

Streamlined Session ManagementDevelopers can easily create and manage verification sessions, either initiated from their backend with a session token or by leveraging Didit's hosted verification links for a no-code frontend approach.

Didit's Developer-First AdvantageDidit offers a modular, AI-native platform with Core KYC, no setup fees, and clean APIs, making it the premier choice for building scalable and secure identity solutions in Flutter.

Why Identity Verification is Critical for Flutter Apps

In today's digital economy, mobile applications are at the forefront of user interaction, from banking and e-commerce to social media and gaming. For Flutter developers, ensuring the authenticity of users is not just a best practice; it's a necessity for security, fraud prevention, and regulatory compliance. Without robust identity verification, apps are vulnerable to account takeovers, synthetic identity fraud, and underage access, leading to significant financial losses and reputational damage.

Traditional identity verification methods can be cumbersome to integrate, often requiring extensive backend development and maintenance. This is where a specialized SDK like Didit's Flutter SDK becomes invaluable, abstracting away much of the complexity and providing a streamlined path to secure and compliant applications. Whether you're building a fintech app requiring stringent KYC (Know Your Customer) checks or an age-restricted platform, integrating a reliable identity verification solution is paramount.

Getting Started with the Didit Flutter SDK

Integrating Didit's powerful identity verification into your Flutter application is designed to be straightforward and developer-friendly. The Didit Flutter SDK provides a Dart API that wraps native iOS and Android SDKs, ensuring optimal performance and access to device-specific features like NFC reading. Here’s a high-level overview of the process:

Installation and Setup

The first step is to add the Didit SDK to your Flutter project. This involves adding the dependency via flutter pub add didit_sdk and then configuring platform-specific requirements for iOS and Android. For iOS, this includes adding a Podspec reference to your Podfile, especially for advanced features like NFC Verification which requires iOS 15+. Android setup involves minor adjustments to your build.gradle.kts for resource packaging.

Once installed, you'll need to obtain your API Key and Workflow ID from the Didit Business Console. These credentials are essential for authenticating requests and defining the specific verification steps your users will undergo, such as ID Verification, Passive & Active Liveness checks, or AML Screening.

Creating Verification Sessions

The core of the Didit integration revolves around creating verification sessions. This typically happens on your backend to protect your API key. Your server makes a POST request to Didit's session API endpoint, including your workflow_id and optional vendor_data (like a user ID) for tracking. Didit responds with a session_id and a session_token. This session_token is then securely passed to your Flutter app.

import 'package:didit_sdk/sdk_flutter.dart';

// Assuming you receive a sessionToken from your backend
String sessionToken = 'your_backend_provided_session_token';

DiditSDK.startVerification(sessionToken: sessionToken, onCompletion: (result) {
  // Handle verification result
  print('Verification completed: ${result.status}');
  print('Session ID: ${result.sessionId}');
  // Navigate user or update UI based on result
}, onError: (error) {
  // Handle errors
  print('Verification error: ${error.message}');
});

This approach gives you full control over the user experience within your app, launching Didit's native UI components for document capture, liveness checks, and other steps. For scenarios where a full in-app flow isn't desired or feasible, Didit also supports Verification Links. These are secure URLs that direct users to a Didit-hosted verification flow, requiring minimal to no frontend development on your part. You can generate these links via the Didit Console or API and share them with users via email, SMS, or within your app.

Advanced Features and Best Practices

The Didit Flutter SDK isn't just about basic ID checks; it offers a suite of advanced features to enhance security and user experience. For instance, NFC Verification allows your app to read cryptographic data directly from ePassports and eIDs, providing the highest level of assurance for identity documents. This is a critical feature for high-security applications, ensuring the document's authenticity and preventing sophisticated forgery attempts.

Another powerful feature is Passive & Active Liveness detection, which combats deepfakes and presentation attacks by verifying that the user is a real, living person. Combined with 1:1 Face Match, which compares a user's selfie to their ID document photo, you can significantly reduce the risk of impersonation and fraud.

When designing your verification workflow in the Didit Console, consider using features like Age Estimation for age-restricted content or AML Screening for financial services to meet regulatory obligations. Didit's modular architecture allows you to compose these checks into tailored workflows that fit your specific needs, adapting to different risk profiles and compliance requirements.

How Didit Helps

Didit provides an AI-native, developer-first identity platform that simplifies the integration of complex identity verification processes into Flutter applications. Our Flutter SDK is a testament to this commitment, offering a robust, easy-to-implement solution for developers. Didit stands out with its:

  • Pay per use: Get started with essential identity verification features without upfront costs.
  • Modular Architecture: Our platform is built with composable identity primitives, allowing you to pick and choose the exact verification checks you need, from ID Verification and Liveness Detection to NFC Verification and AML Screening.
  • AI-Native Technology: Leverage cutting-edge AI for superior accuracy in document analysis, fraud detection, and biometric matching, ensuring reliable results and a smooth user experience.
  • No Setup Fees: We believe in transparent and fair pricing, allowing you to scale your verification efforts without hidden costs.

By using Didit, Flutter developers can focus on building amazing user experiences, confident that the underlying identity verification is handled by a world-class, secure, and compliant platform.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

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.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • 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.

Verify your first user today.

Start free

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