mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 01:27:49 +08:00
improve handling video pop
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user