venixs_sdk 0.0.2
venixs_sdk: ^0.0.2 copied to clipboard
A flutter plugin for venixs AI chat system
Venixs_SDK #
Venixs flutter Wrapper
Features #
This library implements a wrapper on Venixs Chat SDK provided by aiding communication from your customers to you.
Getting Started #
Install package by adding Venixs_SDK to your pubspec.yaml file
Setup #
Android #
To setup this project for android follow these steps:
1. Add the following to your "gradle.properties" file:
android.useAndroidX=true
android.enableJetifier=true
2. Make sure to set the minSdkVersion in your "android/app/build.gradle" file to a figure more than 19 if it was previously lower than 19:
android {
minSdkVersion 19 # Set to 19 or higher
...
}
Dart/Flutter #
1. To initiate the plugin, call the plugin instance in your main.dart
final Venixs venixSdk = Venixs.instance;
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) async {
// TODO: Fetch and put your Venixs public api key here
await Venixs.initializeInterface(publicKey: '<PUBLIC KEY HERE>');
runApp(const MyApp());
},
);
}
...
2. Call the Venixs Chat View method and pass the necessary data to it
venixSdk.initiate(
context,
email: 'example@email.com',
firstName: 'John',
lastName: 'Doe',
),
Usage on sample button #
Just call the initiate method from your any of your favorite button widget
ElevatedButton(
onPressed: () => venixSdk.initiate(
context,
email: 'example@email.com',
firstName: 'John',
lastName: 'Doe',
),
child: Text('Call SDK'),
),
Questions #
Ask a question and message us at support@venixs.com
Found an issue or have a proposal? #
Visit our website at https://venixs.com or message us at support@venixs.com