Flutter Plugin
Quick Start
A powerful and seamless Flutter SDK for integrating Prembly's Identity KYC verification into iOS, Android, and Web
applications.
Add the package to your pubspec.yaml :
dependencies:
prembly_identity_kyc: ^0.0.5
Run flutter pub get to install.
Implementation
import 'package:flutter/material.dart';
import 'package:prembly_identity_kyc/prembly_identity_kyc.dart';
void startVerification(BuildContext context) {
PremblyIdentityKyc.verify(
context: context,
options: IdentityKycOptions(
widgetKey: 'wk_live_abc123xyz789',
widgetId: '550e8400-e29b-41d4-a716-446655440000',
firstName: 'John',
lastName: 'Doe',
email: '[email protected]',
callback: (response) {
if (response['status'] == 'success') {
print('Verification Successful!');
} else {
print('Verification Closed/Failed');
}
},
),
);
}
Troubleshooting (Flutter)
- Similar to React Native, you must add Camera configurations to Info.plist for iOS and AndroidManifest.xml for
Android. - If testing on an iOS simulator, the camera feature will not work. Test on a real device.
Updated about 16 hours ago
Did this page help you?
