inuba_flutter_sdk 0.1.1
inuba_flutter_sdk: ^0.1.1 copied to clipboard
iNuba Flutter SDK - Integration library for flutter mobile applications
iNuba Flutter SDK #
The iNuba Flutter SDK allows you to integrate iNuba services seamlessly into your Flutter application. Built with simplicity in mind.
The package uses the flutter_inappwebview plugin to provide a robust WebView experience with bidirectional communication.
Installation #
Add the iNuba Flutter SDK to your project by including it in your pubspec.yaml file:
dependencies:
inuba_flutter_sdk:
git:
url: https://bitbucket.org/i-nuba/inuba-flutter-sdk.git
ref: v0.1.1 # Use specific version tag
Then run:
flutter pub get
Quick Start #
Before initializing the SDK, make sure you have:
clientToken: Your application client token provided by iNubauserToken: User authentication token from your iNuba integration
Implementation #
Import the package in your Dart file:
import 'package:inuba_flutter_sdk/inuba_flutter_sdk.dart';
Add the iNuba widget to your app:
INubaSDK(
clientToken: 'your_client_token',
userToken: 'your_user_token',
whitelabel: 'your_white_label',
environment: 'develop',
)
That's it! The SDK will handle the rest automatically.
Android Configuration #
Add this provider configuration to your android/app/src/main/AndroidManifest.xml inside the <application> tag:
<provider
android:name="com.pichillilorenzo.flutter_inappwebview_android.InAppWebViewFileProvider"
android:authorities="${applicationId}.flutter_inappwebview_android.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
Support #
For questions or issues, please contact the iNuba development team.
License #
MIT License - see the LICENSE file for details.