Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix android status bar immersion

Prediditb462a580f6ea
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart
index 1e0adb4d..290b504a 100644
--- a/lib/pages/video/video_page.dart
+++ b/lib/pages/video/video_page.dart
@@ -41,7 +41,8 @@ class _VideoPageState extends State<VideoPage>
void initState() {
super.initState();
WakelockPlus.enable();
- if (Platform.isAndroid || Platform.isIOS) {
+ // without that, color blocks will appear on the left and right sides of the screen when the video is fullscreen
+ if (Platform.isIOS) {
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarDividerColor: Colors.black,
@@ -74,7 +75,7 @@ class _VideoPageState extends State<VideoPage>
@override
void dispose() {
- if (Platform.isAndroid || Platform.isIOS) {
+ if (Platform.isIOS) {
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
systemNavigationBarDividerColor: Colors.transparent,