bonga_chat 1.0.2+1
bonga_chat: ^1.0.2+1 copied to clipboard
DialAfrika ChatSDK.
Bonga Chat SDK #
The Bonga Chat SDK is a Flutter package that provides a convenient way to integrate Bonga Chat into your Flutter applications.
Installation #
To use the Bonga Chat SDK in your Flutter project, follow these steps:
-
Add the package to your
pubspec.yamlfile:dependencies: bonga_chat_sdk: ^1.0.2+1 -
Run
flutter pub getto fetch the package and update your dependencies.
Usage #
To integrate Bonga Chat into your app using the Bonga Chat SDK, follow these steps:
-
Import the necessary classes:
import 'package:bonga_chat_sdk/bonga_chat_sdk.dart'; -
Use the
HomePagewidget from the Bonga Chat SDK in your app:home: HomePage( apiKey: 'YOUR_API_KEY', greeting: 'Hello', message: 'How can I assist you?', ),Replace
'YOUR_API_KEY'with your Bonga Chat API key.
Example #
Here's an example of how to integrate Bonga Chat into your Flutter app using the Bonga Chat SDK:
import 'package:flutter/material.dart';
import 'package:bonga_chat_sdk/bonga_chat_sdk.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Bonga Chat Example',
home: HomePage(
apiKey: 'YOUR_API_KEY',
greeting: 'Hello',
message: 'How can I assist you?',
),
);
}
}
Requirements #
- Flutter 2.0 or newer
- Bonga Chat API key
Support #
For any issues or questions regarding the Bonga Chat SDK, please contact our support team at info@dialafrika.com.