veriff_flutter_plugin 1.0.0 copy "veriff_flutter_plugin: ^1.0.0" to clipboard
veriff_flutter_plugin: ^1.0.0 copied to clipboard

A Flutter plugin for integrating Veriff identity verification. Supports Android, iOS, and Web platforms.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:veriff_flutter_plugin/veriff_flutter_plugin.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  Uri? _uri;
  final _veriffFlutterPlugin = VeriffFlutterPlugin.instance;

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

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    Uri? uri;
    // Platform messages may fail, so we use a try/catch PlatformException.
    // We also handle the message potentially returning null.
    try {
      uri = _veriffFlutterPlugin.getUri();
    } on PlatformException catch (e) {
      debugPrint(e.toString());
    }

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _uri = uri;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(child: Text('Running on: $_uri\n')),
      ),
    );
  }
}
0
likes
160
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for integrating Veriff identity verification. Supports Android, iOS, and Web platforms.

Repository (GitHub)
View/report issues

Topics

#veriff #identity-verification #kyc #authentication #biometrics

Documentation

API reference

License

MIT (license)

Dependencies

flutter, veriff_flutter_plugin_platform_interface, veriff_flutter_plugin_web

More

Packages that depend on veriff_flutter_plugin

Packages that implement veriff_flutter_plugin