digified_flutter_plugin 0.0.5 copy "digified_flutter_plugin: ^0.0.5" to clipboard
digified_flutter_plugin: ^0.0.5 copied to clipboard

Flutter plugin for Digified's Arabic eKYC and eContract SDKs. Provides native flows for identity verification and electronic contract signing with updated Android integration (FlutterActivity + Hilt) [...]

example/lib/main.dart

import 'package:digified_flutter_plugin/digified_flutter_plugin.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // Enable SDK logging for development
  await DigifiedFlutterPlugin.setLoggingEnabled(true);
  
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Digified Demo'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () async {
                  try {
                    final ekycSessionId = await DigifiedFlutterPlugin.presentEKYC(
                      apiKey: "your_api_key",
                      baseUrl: "your_base_url",
                    );
                    print("eKYC completed. Session ID: $ekycSessionId");
                  } on PlatformException catch (e) {
                    print("eKYC failed: ${e.message}");
                  } catch (e) {
                    print("eKYC error: $e");
                  }
                },
                child: const Text('Launch eKYC'),
              ),
              const SizedBox(height: 20),
              ElevatedButton(
                onPressed: () async {
                  try {
                    await DigifiedFlutterPlugin.presentEContract(
                      apiKey: "your_api_key",
                      baseUrl: "your_base_url",
                      faceMatchingApiKey: "your_face_matching_api_key",
                      faceMatchingBaseUrl: "your_face_matching_base_url",
                      eKYCSessionID: "your_ekyc_session_id",
                      templateVersionID: "your_template_version_id",
                      variables: {
                        "key1": "value1",
                        "key2": "value2",
                      },
                    );
                    print("eContract completed successfully");
                  } on PlatformException catch (e) {
                    print("eContract failed: ${e.message}");
                  }
                },
                child: const Text('Launch eContract'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
498
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for Digified's Arabic eKYC and eContract SDKs. Provides native flows for identity verification and electronic contract signing with updated Android integration (FlutterActivity + Hilt) and iOS 16+ support.

Homepage
Repository
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on digified_flutter_plugin

Packages that implement digified_flutter_plugin