sendbird_chat_sdk 4.2.30 copy "sendbird_chat_sdk: ^4.2.30" to clipboard
sendbird_chat_sdk: ^4.2.30 copied to clipboard

With Sendbird Chat for Flutter, you can easily build an in-app chat with all the essential messaging features.

example/lib/main.dart

import 'dart:async';

import 'package:sendbird_chat_sdk/sendbird_chat_sdk.dart';

void main() async {
  runZonedGuarded(() async {
    // Initialize the SendbirdChat SDK with your Application ID.
    await SendbirdChat.init(appId: 'APP-ID');

    // Connect to the Sendbird server with a User ID.
    await SendbirdChat.connect('USER-ID');

    // Create a new open channel.
    final openChannel =
        await OpenChannel.createChannel(OpenChannelCreateParams());

    // Enter the channel.
    await openChannel.enter();

    // Send a message to the channel.
    openChannel.sendUserMessage(UserMessageCreateParams(message: 'MESSAGE'));
  }, (e, s) {
    // Handle error.
  });
}
copied to clipboard
12
likes
140
points
5.55k
downloads

Publisher

verified publishersendbird.com

Weekly Downloads

2024.06.23 - 2025.01.05

With Sendbird Chat for Flutter, you can easily build an in-app chat with all the essential messaging features.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

unknown (license)

Dependencies

async, collection, connectivity_plus, encrypt, flutter, http, http_parser, isar, isar_flutter_libs, json_annotation, logger, mime, path, path_provider, shared_preferences, universal_io, uuid, web_socket_channel

More

Packages that depend on sendbird_chat_sdk