flutter_periculum 0.0.1
flutter_periculum: ^0.0.1 copied to clipboard
Periculum Insight Plugin
flutter_periculum #
Periculum Insight Plugin (Flutter) This plugin allows Flutter apps to generate Mobile Data Analysis and Affordability Analysis.
Platform Supported #
Android
Installation and usage #
-
Add the latest version of the plugin to your pubspec.yaml (and run
pub get) dependencies: flutter_periculum: ^0.0.1 -
Import the plugin and use it in your flutter App.0
import 'package:flutter_periculum/flutter_periculum.dart';
Example #
var response; try { response = await FlutterPericulum.affordabilityAnalysis( statementKey: 3, dti: 2.0, loanTenure: 30, token: "..."); } on PlatformException { response = 'Failed to get platform version.'; }
if (!mounted) return;
final body = jsonDecode(response.toString());
Compatibility #
Minimum Android SDK: Periculum requires a minimum API level of 21.
Info #
For this plugin to work, you must have a Periculum account and you'll also need to use your merchant Id and secret key to generate a token from the Periculum API.
Getting Started #
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.