zeeh 0.1.5
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