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.

Zeeh Flutter Package #

A package to link Accounts to Zeeh.

πŸ’» Getting started #

Add the Zeeh package dependency to your pubspec.yaml file like this:

dependencies:
  zeeh: 0.1.5

Import #

Import the flutter load_kit package like so:

import 'package:zeeh/zeeh.dart';

Usage #

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> {
  
  // Handle Zeeh package initialzation here.
  _handleInitialization() async {
    final zeeh = Zeeh.start(
        context: context,
        publicKey: 'pk_sT7ayQD0hvoct3luv4m63PBav',
        orgId: 'HDm9o7j8jmA8td4qrfaJeLLw',
        userReference: '43040229394'
    );
    // Get response data
    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'))
          ],
        ),
      ),
    );
  }
}

πŸͺ„ What to Expect in the package #

BUGS/CONTRIBUTIONS/REQUESTS #

If you encounter any problems using this package, please feel free to open an issue.

If you'd like to contribute to this package, kindly open a pull request here

πŸ‘·πŸ½ Contributors #

TECHMINTE

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