cometchat 3.0.13 cometchat: ^3.0.13 copied to clipboard
CometChat enables you to add voice, video & text chat for your website & app. This guide demonstrates how to add chat to an Flutter application using CometChat.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cometchat
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cometchat: ^3.0.13
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cometchat/Builders/app_settings_request.dart';
import 'package:cometchat/Builders/banned_group_member_request.dart';
import 'package:cometchat/Builders/blocked_users_request.dart';
import 'package:cometchat/Builders/conversations_request.dart';
import 'package:cometchat/Builders/group_members_request.dart';
import 'package:cometchat/Builders/groups_request.dart';
import 'package:cometchat/Builders/messages_request.dart';
import 'package:cometchat/Builders/users_request.dart';
import 'package:cometchat/Exception/CometChatException.dart';
import 'package:cometchat/cometchat_sdk.dart';
import 'package:cometchat/handlers/call_listener.dart';
import 'package:cometchat/handlers/connection_listener.dart';
import 'package:cometchat/handlers/group_listener.dart';
import 'package:cometchat/handlers/login_listener.dart';
import 'package:cometchat/handlers/message_listener.dart';
import 'package:cometchat/handlers/user_listener.dart';
import 'package:cometchat/main/cometchat.dart';
import 'package:cometchat/main/package_constants.dart';
import 'package:cometchat/models/action.dart';
import 'package:cometchat/models/app_entity.dart';
import 'package:cometchat/models/attachment.dart';
import 'package:cometchat/models/base_message.dart';
import 'package:cometchat/models/call.dart';
import 'package:cometchat/models/conversation.dart';
import 'package:cometchat/models/custom_message.dart';
import 'package:cometchat/models/group.dart';
import 'package:cometchat/models/group_member.dart';
import 'package:cometchat/models/media_message.dart';
import 'package:cometchat/models/message_receipt.dart';
import 'package:cometchat/models/text_message.dart';
import 'package:cometchat/models/transient_message.dart';
import 'package:cometchat/models/typing_indicator.dart';
import 'package:cometchat/models/user.dart';
import 'package:cometchat/utils/constants.dart';