rtc_room_engine 1.5.1 copy "rtc_room_engine: ^1.5.1" to clipboard
rtc_room_engine: ^1.5.1 copied to clipboard

Flutter plugin of rtc_room_engine SDK

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:rtc_room_engine_example/common/languages/translation_service.dart';
import 'package:rtc_room_engine_example/common/routers/names.dart';

import 'common/routers/pages.dart';
import 'common/store/store.dart';

void main() {
  Get.put<UserStore>(UserStore());
  Get.put<RoomStore>(RoomStore());
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      locale: Get.deviceLocale,
      fallbackLocale: TranslationService.fallbackLocale,
      initialRoute: AppRoutes.login,
      debugShowCheckedModeBanner: false,
      getPages: AppPages.routes,
      translations: TranslationService(),
    );
  }
}