Import SDK
The Flutter RTC Plugin is essentially a wrapper for the RTC SDK.
-
Run the following command in your project directory:
$ flutter pub add rongcloud_rtc_wrapper_plugin
This will add the following code to your pubspec.yaml configuration file:
dependencies:
rongcloud_rtc_wrapper_plugin: ^5.4.5 -
Import the RTC SDK in your code:
import 'package:rongcloud_rtc_wrapper_plugin/rongcloud_rtc_wrapper_plugin.dart';