urva_connect_sdk_flutter 0.0.2 copy "urva_connect_sdk_flutter: ^0.0.2" to clipboard
urva_connect_sdk_flutter: ^0.0.2 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: any

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

ListView(
  scrollDirection: scrollDirection,
  controller: controller,
  children: randomList.map<Widget>((data) {
  	final index = data[0];
  	final height = data[1];
    return AutoScrollTag(
      key: ValueKey(index),
      controller: controller,
      index: index,
      child: Text('index: $index, height: $height'),
      highlightColor: Colors.black.withOpacity(0.1),
    );
  }).toList(),
)

for full example, please see this Demo.