tencent_trtc_cloud 2.8.8 tencent_trtc_cloud: ^2.8.8 copied to clipboard
With TRTC, you can quickly develop cost-effective, low-latency, and high-quality interactive audio/video services.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:trtc_demo/ui/login.dart';
import 'package:trtc_demo/ui/meeting.dart';
import 'package:trtc_demo/ui/member_list.dart';
import 'package:trtc_demo/ui/test/test_api.dart';
import 'package:trtc_demo/models/meeting_model.dart';
import 'package:trtc_demo/ui/test/test_web.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]).then((_) {
runApp(MyApp());
});
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) => MeetingModel(),
child: MaterialApp(
routes: {
"/": (context) => LoginPage(),
"/login": (context) => LoginPage(),
"/meeting": (context) => MeetingPage(),
"/memberList": (context) => MemberListPage(),
"/test": (context) => TestPage(),
"/testweb": (context) => TestWebPage()
},
),
);
}
}