enroll_plugin 1.0.1 copy "enroll_plugin: ^1.0.1" to clipboard
enroll_plugin: ^1.0.1 copied to clipboard

eNROLL is a compliance solution designed to prevent identity fraud and phishing, especially in large populations. Powered by AI technologies like OCR, it reduces human error and speeds up identificati [...]

example/lib/main.dart

import 'package:enroll_plugin/enroll_plugin.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: Builder(builder: (context) {
      return Scaffold(
        body: EnrollPlugin(
          mainScreenContext: context,
          tenantId: 'TENANT_ID',
          tenantSecret: 'TENANT_SECRET',
          enrollMode: EnrollMode.onboarding,
          enrollEnvironment: EnrollEnvironment.staging,
          onSuccess: () {
            WidgetsBinding.instance.addPostFrameCallback((_) {
              debugPrint("Success");
            });
          },
          onError: (error) {
            WidgetsBinding.instance.addPostFrameCallback((_) {
              debugPrint("Error: ${error.toString()}");
            });
          },
          onGettingRequestId: (requestId) {
            WidgetsBinding.instance.addPostFrameCallback((_) {
              debugPrint("requestId:: $requestId");
            });
          },
          localizationCode: EnrollLocalizations.en,
          applicationId: 'APPLICATION_ID',
          skipTutorial: false,
          levelOfTrust: 'LEVEL_OF_TRUST_TOKEN',
          googleApiKey: 'GOOGLE_API_KEY',
          correlationId: 'correlationIdTest',
        ),
      );
    }));
  }
}
3
likes
0
points
257
downloads

Publisher

unverified uploader

Weekly Downloads

eNROLL is a compliance solution designed to prevent identity fraud and phishing, especially in large populations. Powered by AI technologies like OCR, it reduces human error and speeds up identification. Globally trusted, eNROLL ensures secure and efficient identity verification.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on enroll_plugin