urva_connect_sdk_flutter 0.0.6
urva_connect_sdk_flutter: ^0.0.6 copied to clipboard
Urva connect sdk used for urva support chat
urva-connect-sdk-flutter #
This package provides to support chat using urva connect.
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
urva_connect_sdk_flutter: ^0.0.4
In your library add the following import:
import 'package:urva_connect_sdk_flutter/urva_connect_sdk_flutter.dart';
For help getting started with Flutter, view the online documentation.
Usage #
First initialize the sdk
UrvaConnectSdk.initializeSdk(
unqId: "your_unique_id_12345",
token: "your_api_key_abcdefg",
firstName: "your_first_name",
);
Example for Urva connect sdk
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text(widget.title),),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
UrvaConnectSdk.openSupportChat(context);
},
child: Text("Open Support"),
),
],
),
),
),
);
}
for full example, please see this Demo.