cr_meeting_sdk 1.0.2 cr_meeting_sdk: ^1.0.2 copied to clipboard
cr_meeting_sdk plugin.
example/lib/main.dart
import 'dart:io';
import 'package:cr_meeting_demo/src/utils/store.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'src/app.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
// 状态栏透明(Android)
Brightness brightness =
Platform.isAndroid ? Brightness.dark : Brightness.light;
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarBrightness: brightness,
statusBarIconBrightness: brightness,
));
EasyLoading.instance
..maskColor = Colors.black.withOpacity(0.5)
..dismissOnTap = false;
await AppStorage.init();
runApp(const App());
}