flutter_moneykit 0.0.6 flutter_moneykit: ^0.0.6 copied to clipboard
A Flutter plugin that allows for communication with the MoneyKit SDK.
import 'package:flutter/material.dart';
import 'package:flutter_moneykit/flutter_moneykit.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
FlutterMoneykit.events.listen((event) {
print(event.toString());
});
}
void _connect() {
FlutterMoneykit.presentLinkFlow(linkToken: '<your-link-token>');
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: TextButton(
onPressed: _connect,
child: const Text('Connect'),
),
),
),
);
}
}