wallet_verifier_api 0.0.6 copy "wallet_verifier_api: ^0.0.6" to clipboard
wallet_verifier_api: ^0.0.6 copied to clipboard

Verifier API Plugin for iOS Digital ID Verification

wallet_verifier_api #

This plugin is a wrapper around the iOS Verifier API. You can learn more about the Verifier API here.

This plugin is still in development and currently only supports display-only capabilities.

Requirements #

  • iOS >=17.0

Usage #

First, add wallet_verifier_api as a dependency in your pubspec.yaml file.

dependencies:
  wallet_verifier_api: ^0.0.4

Then, import the library:

import 'package:wallet_verifier_api/wallet_verifier_api.dart';

Example #


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

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

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

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

class _MyAppState extends State<MyApp> {
  final _walletVerifierApiPlugin = WalletVerifierApi();

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Verifier API Example'),
        ),
        body: Center(
          child: Row(
            children: [
              ElevatedButton(
                onPressed: () {
                  _walletVerifierApiPlugin.verifyAge([
                    MobileDriversLicenseElement.givenName,
                    MobileDriversLicenseElement.familyName,
                    MobileDriversLicenseElement.ageAtLeast,
                  ], age: 21);
                },
                child: const Text('Verify Age'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
0
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Verifier API Plugin for iOS Digital ID Verification

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on wallet_verifier_api

Packages that implement wallet_verifier_api