提交 54abe294 authored 作者: kongdywang's avatar kongdywang

remove autoOrientation dependence

上级 a9a13eac
...@@ -17,8 +17,6 @@ dependencies: ...@@ -17,8 +17,6 @@ dependencies:
sdk: flutter sdk: flutter
event_bus: ^2.0.0 event_bus: ^2.0.0
auto_orientation: ^2.2.1
flutter_easyloading: ^3.0.0 flutter_easyloading: ^3.0.0
super_player: super_player:
......
...@@ -9,7 +9,6 @@ import 'dart:io'; ...@@ -9,7 +9,6 @@ import 'dart:io';
import 'dart:math'; import 'dart:math';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:auto_orientation/auto_orientation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
......
...@@ -788,20 +788,17 @@ class FullScreenController { ...@@ -788,20 +788,17 @@ class FullScreenController {
exitFullScreen(); exitFullScreen();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: SystemUiOverlay.values); SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: SystemUiOverlay.values);
AutoOrientation.portraitUpMode();
} else if (orientationDirection == TXVodPlayEvent.ORIENTATION_LANDSCAPE_RIGHT) { } else if (orientationDirection == TXVodPlayEvent.ORIENTATION_LANDSCAPE_RIGHT) {
enterFullScreen(); enterFullScreen();
SystemChrome.setPreferredOrientations( SystemChrome.setPreferredOrientations(
Platform.isIOS ? [DeviceOrientation.landscapeRight] : [DeviceOrientation.landscapeLeft]); Platform.isIOS ? [DeviceOrientation.landscapeRight] : [DeviceOrientation.landscapeLeft]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
AutoOrientation.landscapeRightMode();
} else if (orientationDirection == TXVodPlayEvent.ORIENTATION_PORTRAIT_DOWN) { } else if (orientationDirection == TXVodPlayEvent.ORIENTATION_PORTRAIT_DOWN) {
} else if (orientationDirection == TXVodPlayEvent.ORIENTATION_LANDSCAPE_LEFT) { } else if (orientationDirection == TXVodPlayEvent.ORIENTATION_LANDSCAPE_LEFT) {
enterFullScreen(); enterFullScreen();
SystemChrome.setPreferredOrientations( SystemChrome.setPreferredOrientations(
Platform.isIOS ? [DeviceOrientation.landscapeLeft] : [DeviceOrientation.landscapeRight]); Platform.isIOS ? [DeviceOrientation.landscapeLeft] : [DeviceOrientation.landscapeRight]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
AutoOrientation.landscapeLeftMode();
} }
} }
......
...@@ -10,8 +10,6 @@ dependencies: ...@@ -10,8 +10,6 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
auto_orientation: ^2.2.1
flutter_easyloading: ^3.0.0 flutter_easyloading: ^3.0.0
super_player: super_player:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论