基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix video player position in fullscreen mode
Predidita7b2783c348d
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xmlindex cb1ef880..9b01be97 100644--- a/android/app/src/main/res/values/styles.xml+++ b/android/app/src/main/res/values/styles.xml@@ -1,5 +1,5 @@<?xml version="1.0" encoding="utf-8"?>-<resources>+<resources xmlns:tools="http://schemas.android.com/tools"><!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --><style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar"><!-- Show a splash screen on the activity. Automatically removed when@@ -14,5 +14,6 @@This Theme is only used starting with V2 of Flutter's Android embedding. --><style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"><item name="android:windowBackground">?android:colorBackground</item>+ <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">shortEdges</item></style></resources>diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dartindex a3664cbe..b7016111 100644--- a/lib/pages/video/video_page.dart+++ b/lib/pages/video/video_page.dart@@ -1,4 +1,3 @@-import 'dart:io';import 'package:flutter/material.dart';import 'package:flutter_modular/flutter_modular.dart';import 'package:kazumi/bean/appbar/sys_app_bar.dart';@@ -39,13 +38,13 @@ class _VideoPageState extends State<VideoPage>void initState() {super.initState();WakelockPlus.enable();- if (Platform.isIOS) {- SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(- systemNavigationBarColor: Colors.black,- systemNavigationBarDividerColor: Colors.black,- statusBarColor: Colors.black,- ));- }+ // if (Platform.isIOS) {+ // SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(+ // systemNavigationBarColor: Colors.black,+ // systemNavigationBarDividerColor: Colors.black,+ // statusBarColor: Colors.black,+ // ));+ // }videoPageController.currentEspisode = 1;videoPageController.currentRoad = 0;videoPageController.historyOffset = 0;@@ -72,13 +71,13 @@ class _VideoPageState extends State<VideoPage>@overridevoid dispose() {- if (Platform.isIOS) {- SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(- systemNavigationBarColor: Colors.transparent,- systemNavigationBarDividerColor: Colors.transparent,- statusBarColor: Colors.transparent,- ));- }+ // if (Platform.isIOS) {+ // SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(+ // systemNavigationBarColor: Colors.transparent,+ // systemNavigationBarDividerColor: Colors.transparent,+ // statusBarColor: Colors.transparent,+ // ));+ // }try {playerController.mediaPlayer.dispose();} catch (_) {}@@ -111,6 +110,10 @@ class _VideoPageState extends State<VideoPage>title: Text(videoPageController.title),)),body: SafeArea(+ top: !videoPageController.androidFullscreen,+ bottom: !videoPageController.androidFullscreen,+ left: !videoPageController.androidFullscreen,+ right: !videoPageController.androidFullscreen,child: (Utils.isTablet() &&MediaQuery.of(context).size.height <MediaQuery.of(context).size.width)