zeeh 0.1.5 copy "zeeh: ^0.1.5" to clipboard
zeeh: ^0.1.5 copied to clipboard

A Flutter package used to connect financial accounts to Zeeh.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Zeeh Account Linking',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  _handleInitialization() async {
    final zeeh = Zeeh.start(
        context: context,
        publicKey: 'pk_AIdx5FNCdbTW8EjyDlrS0SCGf',
        orgId: '64edeb6f5ec7833c32704b9b',
        userReference: '43040229394'
    );
    final response = await zeeh.initialize();
    if (response != null) {
      print(response.toJson());
    } else {
      print("No Response!");
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            OutlinedButton(
                onPressed: _handleInitialization,
                child: const Text('Start Zeeh'))
          ],
        ),
      ),
    );
  }
}
1
likes
120
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package used to connect financial accounts to Zeeh.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

another_flushbar, cupertino_icons, flutter, flutter_svg, http, intl, provider

More

Packages that depend on zeeh