qiscus_chat_sdk 1.0.0+alpha4 copy "qiscus_chat_sdk: ^1.0.0+alpha4" to clipboard
qiscus_chat_sdk: ^1.0.0+alpha4 copied to clipboard

outdated

A starting point for Dart libraries or applications.

Qiscus Chat SDK #

Qiscus Chat SDK for Flutter

Introduction #

Qiscus Chat SDK (Software Development Kit) is a product provided by Qiscus that enables you to embed an in-app chat/chat feature in your applications quickly and easily. With our chat SDK, you can implement chat feature without dealing with the complexity of real-time communication infrastructure. We provide a powerful API to let you implement chat feature into your apps in the most seamless development process.

Usage #

A simple usage example:

import 'package:qiscus_chat_sdk/qiscus_chat_sdk.dart';
import 'package:flutter/widgets.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MyHomepage();
}

class MyHomepage extends StatefulWidget {
  @override
  _MyHomepageState createState() => _MyHomepageState();
}

class _MyHomepageState extends State<MyHomepage> {
  QiscusSDK _qiscusSDK;

  @override
  void initState() {
    super.initState();
    Future.microtask(() {
      _qiscusSDK = QiscusSDK.withAppId('sdksample', callback: (error) {
        if (error != null) {
          return print('Error happend while initializing qiscus sdk: $error');
        }
        print('Qiscus SDK Ready to use');
      });
    });
  }

  @override
  void dispose() {
    super.dispose();
    _qiscusSDK?.clearUser(callback: (error) {
      // ignore error
    });
  }

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

7
likes
0
points
1.3k
downloads

Publisher

unverified uploader

Weekly Downloads

A starting point for Dart libraries or applications.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, dartz, dio, equatable, flutter, get_it, json_annotation, logger, meta, mqtt_client, pretty_dio_logger, retrofit, sealed_unions

More

Packages that depend on qiscus_chat_sdk