vove_id_flutter 1.3.0 copy "vove_id_flutter: ^1.3.0" to clipboard
vove_id_flutter: ^1.3.0 copied to clipboard

VOVE ID - Instant, seamless identity verification. Designed for trust, user-centric, fully compliant with AML/KYC. Optimized for the MEA region.

example/lib/main.dart

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

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  Vove.initialize(
    environment: VoveEnvironment.sandbox,
    publicKey: "6fc3fb00391916cfcd0e47d3a11a243054413ffcf220f9b3adb8d3c6db307842",
  );
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  String _idMatchingResult = 'Not started';
  bool _isProcessing = false;

  @override
  void initState() {
    super.initState();
  }

  Future<void> _startVerification() async {
    setState(() {
      _isProcessing = true;
      _idMatchingResult = 'Processing...';
    });

    try {
      final result = await Vove.start(
        sessionToken:
            'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2b3ZlSWQiOiI2ODQ3NjU0ZTJhOWFlYjRjNTNiOWYyMmEiLCJyZWZJZCI6ImRlYjVjZGUwLTRlMTMtNDRjNy1hYjM0LTJiMzEzY2QyODhmMSIsIm9yZ0lkIjoiNjU4ZjAyZTQ4NmRkMWIzMmUzYjQwOTlmIiwic2Vzc2lvbklkIjoiNzUzZmY2NDMtNDYyYi00OTQ4LTliMDMtM2U3NTBhYzk3NDRlIiwiaWF0IjoxNzQ5NTA5NDU0LCJleHAiOjE3NDk1MTEyNTR9.xsPpJxzeBQqxMnE4i3iUqVDg9QJ8eKGHE-zBVX7DhgU',
        locale: VoveLocale.fr,
        enableVocalGuidance: true,
      );
      setState(() {
        _idMatchingResult = 'Result: $result';
      });
    } on PlatformException catch (e) {
      setState(() {
        _idMatchingResult = 'Error: ${e.message}';
      });
    } catch (e) {
      setState(() {
        _idMatchingResult = 'Unexpected error: $e';
      });
    } finally {
      setState(() {
        _isProcessing = false;
      });
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Vove ID Flutter Example'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text('Verification Result: $_idMatchingResult'),
              const SizedBox(height: 20),
              ElevatedButton(
                onPressed: _isProcessing ? null : _startVerification,
                child: const Text('Start Verification'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
124
downloads

Publisher

unverified uploader

Weekly Downloads

VOVE ID - Instant, seamless identity verification. Designed for trust, user-centric, fully compliant with AML/KYC. Optimized for the MEA region.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on vove_id_flutter

Packages that implement vove_id_flutter