init static method

Future init()

初始化

Implementation

static Future init() async {
  WidgetsFlutterBinding.ensureInitialized();
  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

  setSystemUi();

  AppConfig.register();
  await StorageService.register();
  AudioService.register();
  SoundRecorderService.register();
  CacheService.register();
  VersionUpdateService.register();
  AppleService.register();
  AliService.register();
}