okra_widget 0.0.2 okra_widget: ^0.0.2 copied to clipboard
Okra link widget application
okra_widget #
This is an flutter library for implementing okra widget
Getting Started #
This library would help you add Okra widget to your hybrid android/ios application in no time. All you need to do is ...
Install #
To use this plugin, add okra_widget
as a dependency in your pubspec.yaml file.
dependencies:
okra_widget: ^0.0.1
On iOS, opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview
and the value true
.
<dict>
<key>io.flutter.embedded_views_preview</key>
<true/>
</dict>
Usage #
//Okra.create() static method takes in a context parameter and also and OkraOption parameter-->
var okraOptions =OkraOptions(isWebview: false, key: "c81f3e05-7a5c-5727-8d33-1113a3c7a5e4", token: "5d8a35224d8113507c7521ac",products: [Product.auth, Product.balance], environment: Environment.dev, clientName: "Bassey");
Okra.create(context, okraOptions);
OkraOptions #
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
isWebview |
boolean |
true | true | |
key |
String |
true | undefined | Your public key from Okra. |
token |
String |
true | undefined | Your pubic Key from Okra dashboard. Use test key for test mode and live key for live mode |
products |
ArrayList<Enums.Product> |
true | undefined | The Okra products you want to use with the widget. |
env |
Enums.Environment |
true | undefined | |
clientName |
String |
true | undefined | Name of the customer using the widget on the application |
webhook |
String |
true | undefined | The Url that Okra send the client's data to. |