mono_flutter 1.0.0-dev.1
mono_flutter: ^1.0.0-dev.1 copied to clipboard
A Flutter plugin integrating the official android and ios SDK for Mono https://mono.co
mono_flutter #
A Flutter plugin integrating the official android and ios SDK for Mono (financial data Platform) (https://mono.co/)
Usage #
Import package:mono_flutter/mono_flutter.dart
and use the methods in MonoFlutter
class.
for web support ass the following to index.html #
```HTML
Example:
```dart
import 'package:mono_flutter/mono_flutter.dart';
void main() async {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: RaisedButton(
child: Text('launch mono'),
onPressed: () {
if (kIsWeb){
return MonoFlutter().launch(
'API_KEY',
'',
jsonEncode({
"selectedInstitution": {
"id": "5f2d08bf60b92e2888287703",
"auth_method": "internet_banking"
}
}));}
Navigator.of(context)
.push(CupertinoPageRoute(
builder: (c) => MonoWebView(
apiKey: 'API_KEY',
onClosed: () {
print('Modal closed');
},
onSuccess: (code) {
print('Mono Success $code');
},
)))
.then((code) => print(code));
},
));
}
}
checkout the example project for full implementation