plaid_universal 0.1.0+1 copy "plaid_universal: ^0.1.0+1" to clipboard
plaid_universal: ^0.1.0+1 copied to clipboard

Plaid Link for Flutter platform supporting iOS, Android, MacOS, Linux, Windows and Web by maxint.com

Plaid Universal #

Plaid Link for Flutter platform supporting iOS, Android, MacOS, Linux, Windows and Web by maxint.com

See Plaid Link documentation to learn how to use it.

Also checkout plaid_flutter package to configure plaid for Android, iOS and Web

Configurations #

Web #

Add following to your web/index.html's <head> section

<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"></script>

Install #

Add plaid_universal via pub:

$ flutter pub add plaid_universal

Usage #

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'Plaid Universal Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const MyHomePage(title: 'Plaid Universal Demo'),
      );
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(
          title: Text(title),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              final result = await Navigator.of(context).push<String>(
                MaterialPageRoute(
                  builder: (context) => const PlaidUniversal(
                    linkToken: LinkTokenConfiguration(
                      token: "your generated link token"
                    ),
                    onEnrollment: (publicToken, metadata){
                      Navigator.pop(context, publicToken);
                    },
                    onExit: (exit){
                      Navigator.pop(context);
                    },
                  ),
                ),
              );
              print(result);
            },
            child: const Text("Connect"),
          ),
        ),
      );
}

Publisher #

Maxint.com

License #

MPL 2.0

2
likes
150
points
37
downloads

Publisher

verified publishermaxint.com

Weekly Downloads

Plaid Link for Flutter platform supporting iOS, Android, MacOS, Linux, Windows and Web by maxint.com

Repository (GitHub)

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

alfred, flutter, html, humps, plaid_flutter, url_launcher

More

Packages that depend on plaid_universal