tencent_im_sdk_plugin 0.0.6 copy "tencent_im_sdk_plugin: ^0.0.6" to clipboard
tencent_im_sdk_plugin: ^0.0.6 copied to clipboard

discontinuedreplaced by: tencent_cloud_chat_sdk
outdated

tencent qcloud im sdk for flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:tencent_im_sdk_plugin_example/pages/login/login.dart';
import 'package:tencent_im_sdk_plugin_example/provider/conversion.dart';
import 'package:tencent_im_sdk_plugin_example/provider/currentMessageList.dart';
import 'package:tencent_im_sdk_plugin_example/provider/friend.dart';
import 'package:tencent_im_sdk_plugin_example/provider/friendApplication.dart';
import 'package:tencent_im_sdk_plugin_example/provider/user.dart';

// 应用初始化时就加在登录页

void main() {
  // 先设置状态栏样式
  SystemUiOverlayStyle style = SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
  );

  SystemChrome.setSystemUIOverlayStyle(style);

  runApp(MultiProvider(
    providers: [
      ChangeNotifierProvider(create: (_) => ConversionModel()),
      ChangeNotifierProvider(create: (_) => UserModel()),
      ChangeNotifierProvider(create: (_) => CurrentMessageListModel()),
      ChangeNotifierProvider(create: (_) => FriendListModel()),
      ChangeNotifierProvider(create: (_) => FriendApplicationModel()),
    ],
    child: LoginPage(),
  ));
}
29
likes
0
pub points
80%
popularity

Publisher

verified publishercomm.qq.com

tencent qcloud im sdk for flutter.

Homepage

License

unknown (license)

Dependencies

flutter, json_annotation

More

Packages that depend on tencent_im_sdk_plugin