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

PlatformiOS

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 >=13.0*

*While the plugin is compatible with iOS 13.0, the Verifier API is only available on iOS 17.0 and later. Any calls to the plugin (except for the isSupported method) will return a UNSUPPORTED_IOS_VERSION error below 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
150
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

Verifier API Plugin for iOS Digital ID Verification

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on wallet_verifier_api

Packages that implement wallet_verifier_api