mod: 不跟随屏幕旋转
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@ -16,11 +17,15 @@ import 'package:media_kit/media_kit.dart'; // Provides [Player], [Media], [Playl
|
|||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
MediaKit.ensureInitialized();
|
MediaKit.ensureInitialized();
|
||||||
await GStrorage.init();
|
SystemChrome.setPreferredOrientations(
|
||||||
runApp(const MyApp());
|
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown])
|
||||||
await Request.setCookie();
|
.then((_) async {
|
||||||
await Data.init();
|
await GStrorage.init();
|
||||||
await GStrorage.lazyInit();
|
runApp(const MyApp());
|
||||||
|
await Request.setCookie();
|
||||||
|
await Data.init();
|
||||||
|
await GStrorage.lazyInit();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
class MyApp extends StatelessWidget {
|
class MyApp extends StatelessWidget {
|
||||||
|
|||||||
@ -144,7 +144,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
() => ComBtn(
|
() => ComBtn(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
_.isFullScreen.value
|
_.isFullScreen.value
|
||||||
? FontAwesomeIcons.a
|
? FontAwesomeIcons.compress
|
||||||
: FontAwesomeIcons.expand,
|
: FontAwesomeIcons.expand,
|
||||||
size: 15,
|
size: 15,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
|||||||
Reference in New Issue
Block a user