tencent_im_plugin 1.0.0-beta+1 tencent_im_plugin: ^1.0.0-beta+1 copied to clipboard
This plug-in integrates Tencent cloud 'imsdk', realizes cross platform im access, and is compatible with Android and IOS devices.
import 'package:flutter/material.dart';
import 'package:tencent_im_plugin_example/page/chat.dart';
import 'package:tencent_im_plugin_example/page/home/home.dart';
import 'package:tencent_im_plugin_example/page/interfaces_test.dart';
import 'package:tencent_im_plugin_example/page/login.dart';
import 'package:tencent_im_plugin_example/page/main.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
routes: {
"/": (context) => HomePage(),
"/interfaces_test": (context) => InterfacesTest(),
"/login": (context) => Login(),
"/main": (context) => Main(),
"/chat": (context) => Chat(),
},
);
}
}