mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: fs
related #306 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -480,11 +480,9 @@ class BangumiIntroController extends CommonController {
|
||||
// 重新请求评论
|
||||
if (videoDetailCtr.showReply) {
|
||||
try {
|
||||
/// 未渲染回复组件时可能异常
|
||||
VideoReplyController videoReplyCtr =
|
||||
Get.find<VideoReplyController>(tag: Get.arguments['heroTag']);
|
||||
videoReplyCtr.aid = aid;
|
||||
videoReplyCtr.onRefresh();
|
||||
Get.find<VideoReplyController>(tag: Get.arguments['heroTag'])
|
||||
..aid = aid
|
||||
..onReload();
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
|
||||
@@ -639,7 +639,7 @@ class VideoIntroController extends GetxController
|
||||
try {
|
||||
Get.find<VideoReplyController>(tag: heroTag)
|
||||
..aid = aid
|
||||
..onRefresh();
|
||||
..onReload();
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
|
||||
@@ -584,7 +584,10 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
!isFullScreen &&
|
||||
isShowing &&
|
||||
mounted) {
|
||||
if (!removeSafeArea) showStatusBar();
|
||||
if (videoDetailController.imageStatus.not &&
|
||||
removeSafeArea.not) {
|
||||
showStatusBar();
|
||||
}
|
||||
}
|
||||
return Container(
|
||||
color: Colors.black,
|
||||
@@ -1228,9 +1231,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
videoDetailController.tabCtr = TabController(
|
||||
vsync: this,
|
||||
length: tabs.length,
|
||||
initialIndex: tabs.length > videoDetailController.tabCtr.length
|
||||
? videoDetailController.tabCtr.index
|
||||
: 0,
|
||||
initialIndex:
|
||||
videoDetailController.tabCtr.index.clamp(0, tabs.length - 1),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:auto_orientation/auto_orientation.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:status_bar_control/status_bar_control.dart';
|
||||
|
||||
import '../../../utils/storage.dart';
|
||||
|
||||
@@ -74,6 +75,7 @@ Future<void> hideStatusBar() async {
|
||||
await SystemChrome.setEnabledSystemUIMode(
|
||||
SystemUiMode.immersiveSticky,
|
||||
);
|
||||
StatusBarControl.setHidden(true);
|
||||
}
|
||||
|
||||
//退出全屏显示
|
||||
@@ -92,6 +94,7 @@ Future<void> showStatusBar() async {
|
||||
mode,
|
||||
overlays: SystemUiOverlay.values,
|
||||
);
|
||||
StatusBarControl.setHidden(false);
|
||||
} else if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
|
||||
await const MethodChannel('com.alexmercerind/media_kit_video')
|
||||
.invokeMethod(
|
||||
|
||||
Reference in New Issue
Block a user