sendbird_chat_sdk 4.0.2 copy "sendbird_chat_sdk: ^4.0.2" to clipboard
sendbird_chat_sdk: ^4.0.2 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.
    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.
  });
}
12
likes
0
pub points
93%
popularity

Publisher

verified publishersendbird.com

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

License

unknown (license)

Dependencies

collection, connectivity_plus, encrypt, flutter, http, http_parser, json_annotation, logger, mime, shared_preferences, universal_io, uuid, web_socket_channel

More

Packages that depend on sendbird_chat_sdk