VChatCloud Flutter Sample App
This sample demonstrates how you can use VChatCloud Flutter SDK in your own Flutter application. VChatCloud provides an easy-to-use Chat API, Chat SDKs, and a fully-managed chat platform on the backend that provides upload files, open graph, translation.
This sample consists of several features, including:
- Connecting and disconnecting from VChatCloud server
- Join channel
- Send a message (text and file message)
- Receive channel events and handle appropriately
The minimum requirements for this demo are:
- Xcode or Android studio or Visual Studio Code
- Dart 2.13.0
- Flutter 2.0.0 or higher
This sample demonstrates a few example how you can use SDK on your application. The sample consists of the following:
- Connect and disconnect from VChatCloud Server
- Join channel
- Send / fetch a message (text and file message)
- Receive channel events and handle appropriately
- Update / Fetch user profile information (profile image / nickname)
- Get the last messages of a channel
To run this demo, create a chat room in VChatCloud's CMS, copy the ChannelKey of the chat room created in the dashboard, and paste it into the roomId value in lib/main.dart
. You can then run the sample from the directory by typing flutter run in the command window.
// lib/main.dart
const roomId = "YOUR_CHANNEL_KEY"; // input your channel key from VChatCloud CMS
Check out the Official VChatCloud Flutter docs tutorials.