azakaw_kyc_flutter 0.0.3
azakaw_kyc_flutter: ^0.0.3 copied to clipboard
Flutter plugin for Azakaw KYC integration
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:azakaw_kyc_flutter/azakaw_kyc_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: ElevatedButton(
onPressed: () {
AzakawKyc.start(
context: context,
config: AzakawKycConfig(
sessionId: 'test-session',
environment: Environment.sandbox,
),
onComplete: () {
print('KYC completed');
},
onCancel: () {
print('KYC cancelled');
},
);
},
child: const Text('Start KYC'),
),
),
);
}
}