apex_kyc 1.0.2 copy "apex_kyc: ^1.0.2" to clipboard
apex_kyc: ^1.0.2 copied to clipboard

A comprehensive Flutter SDK for KYC (Know Your Customer) verification featuring document capture, real-time liveness detection with randomized challenges, and seamless backend integration. Supports mu [...]

Apex KYC #

pub package

Complete Flutter KYC (Know Your Customer) verification SDK with document verification and liveness detection.

Installation 📦 #

Add this to your package's pubspec.yaml file:

dependencies:
  apex_kyc: ^1.0.0

Then run:

flutter pub get

Quick Start 🚀 #

1. Initialize SDK #

import 'package:apex_kyc/index.dart';

void main() {
  ApexKycConfig.initialize(
    baseUrl: 'https://your-backend-api.com',
    apiKey: 'your-api-key', // Optional
  );
  
  runApp(MyApp());
}

2. Use the Widget #

ApexKycFlowWidget(
  applicantId: 'your-applicant-id',
  onComplete: (verification) {
    print('Verification completed!');
  },
  onError: (error) {
    print('Error: $error');
  },
)

Complete Example 💡 #

import 'package:flutter/material.dart';
import 'package:apex_kyc/index.dart';

void main() {
  ApexKycConfig.initialize(
    baseUrl: 'https://api.example.com',
    apiKey: 'your-api-key',
  );
  
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('KYC Verification')),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (context) => ApexKycFlowWidget(
                    applicantId: 'your-applicant-id',
                    onComplete: (verification) {
                      Navigator.pop(context);
                      ScaffoldMessenger.of(context).showSnackBar(
                        SnackBar(
                          content: Text('Verification completed!'),
                          backgroundColor: Colors.green,
                        ),
                      );
                    },
                    onError: (error) {
                      Navigator.pop(context);
                      ScaffoldMessenger.of(context).showSnackBar(
                        SnackBar(
                          content: Text('Error: $error'),
                          backgroundColor: Colors.red,
                        ),
                      );
                    },
                  ),
                ),
              );
            },
            child: Text('Start KYC Verification'),
          ),
        ),
      ),
    );
  }
}

Platform Setup 🔧 #

Android #

Add camera permission to android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA"/>

iOS #

Add camera usage description to ios/Runner/Info.plist:

<key>NSCameraUsageDescription</key>
<string>Camera access is required for KYC verification</string>

License 📄 #

See LICENSE file for details.

Support 💬 #

For issues, questions, or suggestions, please open an issue on GitHub.

1
likes
130
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter SDK for KYC (Know Your Customer) verification featuring document capture, real-time liveness detection with randomized challenges, and seamless backend integration. Supports multiple document types (passport, ID card, driving license), customizable themes, company branding, and cross-platform compatibility (iOS & Android).

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

camera, collection, equatable, flutter, google_mlkit_face_detection, http, http_parser, image, image_picker, lottie, path_provider, plugin_platform_interface, screen_brightness, shared_preferences

More

Packages that depend on apex_kyc

Packages that implement apex_kyc