improve handling video pop

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-28 18:23:29 +08:00
parent 9ed8b14d1b
commit 88c01ffca3
5 changed files with 17 additions and 26 deletions

View File

@@ -32,7 +32,7 @@ class MineController extends CommonDataController<FavFolderData, FavFolderData>
// 用户状态 动态、关注、粉丝
final Rx<UserStat> userStat = const UserStat().obs;
Rx<ThemeType> themeType = Pref.themeType.obs;
final Rx<ThemeType> themeType = Pref.themeType.obs;
ThemeType get nextThemeType =>
ThemeType.values[(themeType.value.index + 1) % ThemeType.values.length];

View File

@@ -90,7 +90,7 @@ class _SavePanelState extends State<SavePanel> {
final currentRoute = Get.currentRoute;
late final hasRoot = reply.hasRoot();
if (currentRoute.startsWith('/video')) {
if (currentRoute == '/videoV') {
final rootId = hasRoot ? reply.root : reply.id;
uri =

View File

@@ -78,7 +78,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
}
late final darkVideoPage =
Get.currentRoute.startsWith('/video') && Pref.darkVideoPage;
Get.currentRoute == '/videoV' && Pref.darkVideoPage;
late ThemeData themeData;
@override

View File

@@ -330,13 +330,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
tag: videoDetailController.heroTag,
);
if (!Get.previousRoute.startsWith('/video')) {
if (Platform.isAndroid && !videoDetailController.setSystemBrightness) {
ScreenBrightnessPlatform.instance.resetApplicationScreenBrightness();
}
PlPlayerController.setPlayCallBack(null);
}
if (!videoDetailController.isFileSource) {
if (videoDetailController.isUgc) {
ugcIntroController