enroll_neo_plugin 1.1.3 copy "enroll_neo_plugin: ^1.1.3" to clipboard
enroll_neo_plugin: ^1.1.3 copied to clipboard

eNROLL Neo is a lightweight compliance solution that prevents identity fraud and phishing. Powered by AI, it reduces errors and speeds up identification, ensuring secure verification.

example/lib/main.dart

import 'package:enroll_neo_plugin/constants/enroll_step_type.dart';
import 'package:enroll_neo_plugin/constants/enroll_colors.dart';
import 'package:enroll_neo_plugin/constants/enroll_theme.dart';
import 'package:enroll_neo_plugin/enroll_neo_plugin.dart';
import 'package:flutter/material.dart';

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

final EnrollTheme _exampleTheme = EnrollTheme(
  colors: EnrollColors(
    primary: const Color(0xFF756C10),
    secondary: const Color(0xFF192537),
  ),
  icons: const EnrollIcons(
    logo: EnrollLogoConfig(
      mode: EnrollLogoMode.custom,
      assetName: 'sample_location_icon',
      renderingMode: EnrollIconRenderingMode.original,
      showSponsoredBy: false,
    ),
    location: EnrollLocationIcons(
      tutorial: EnrollStepIcon(
        assetName: 'sample_location_icon',
        renderingMode: EnrollIconRenderingMode.original,
      ),
    ),
    phone: EnrollPhoneIcons(
      select: EnrollStepIcon(assetName: 'sample_location_icon'),
    ),
    email: EnrollEmailIcons(
      tutorial: EnrollStepIcon(
        assetName: 'sample_location_icon',
        renderingMode: EnrollIconRenderingMode.original,
      ),
    ),
    nationalId: EnrollNationalIdIcons(
      tutorial: EnrollStepIcon(
        assetName: 'sample_location_icon',
        renderingMode: EnrollIconRenderingMode.original,
      ),
      tutorialIdOrPassport: EnrollStepIcon(
        assetName: 'sample_location_icon',
        renderingMode: EnrollIconRenderingMode.original,
      ),
    ),
    common: EnrollCommonIcons(
      termsAndConditions: EnrollStepIcon(
        assetName: 'sample_location_icon',
        renderingMode: EnrollIconRenderingMode.original,
      ),
      popups: EnrollPopupIcons(
        successIcon: EnrollStepIcon(
          assetName: 'sample_location_icon',
          renderingMode: EnrollIconRenderingMode.original,
        ),
      ),
    ),
  ),
);

/// My App
class MyApp extends StatefulWidget {
  /// My App constructor
  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: EnrollNeoPlugin(
          mainScreenContext: context,
          tenantId: '3bab5a01-b3e2-4900-890c-d5fc6990e610',
          tenantSecret: 'e84e5d36-ede2-42a6-abba-ae01a9b773fc',
          requestId: '',
          enrollMode: EnrollMode.onboarding,
          enrollEnvironment: EnrollEnvironment.staging,
          onSuccess: (applicantId) {
            WidgetsBinding.instance.addPostFrameCallback((_) {
              debugPrint("success: $applicantId");
            });
          },
          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',
          templateId: "templateId",
          contractParameters: "contractParameters",
          enrollExitStep: EnrollStepType.personalConfirmation,
          // Uncomment to apply the example theme
          enrollTheme: _exampleTheme,
        ),
      );
    }));
  }
}
1
likes
140
points
61
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

eNROLL Neo is a lightweight compliance solution that prevents identity fraud and phishing. Powered by AI, it reduces errors and speeds up identification, ensuring secure verification.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on enroll_neo_plugin

Packages that implement enroll_neo_plugin