azakaw_kyc_flutter 0.0.10 copy "azakaw_kyc_flutter: ^0.0.10" to clipboard
azakaw_kyc_flutter: ^0.0.10 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'),
        ),
      ),
    );
  }
}
0
likes
105
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for Azakaw KYC integration

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, permission_handler, webview_flutter

More

Packages that depend on azakaw_kyc_flutter

Packages that implement azakaw_kyc_flutter