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

outdated

A starting point for Dart libraries or applications.

example/lib/main.dart

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();
  }
}
7
likes
0
points
1.23k
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