Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-20 15:58:00 +08:00
parent 36de899a35
commit 96586f130f
4 changed files with 7 additions and 6 deletions

View File

@@ -1116,7 +1116,7 @@ class VideoDetailController extends GetxController
bool isQuerying = false;
final Rx<List<LanguageItem>?> languages = Rx<List<LanguageItem>?>(null);
final Rx<String?> currLang = Rx(null);
final Rx<String?> currLang = Rx<String?>(null);
void setLanguage(String language) {
if (!isLoginVideo) {
SmartDialog.showToast('账号未登录');

View File

@@ -1937,7 +1937,8 @@ class HeaderControlState extends TripleState<HeaderControl> {
},
),
),
if (!isFullScreen || !isPortrait)
if (!plPlayerController.isDesktopPip &&
(!isFullScreen || !isPortrait))
SizedBox(
width: 42,
height: 34,

View File

@@ -279,8 +279,9 @@ class PlPlayerController {
windowManager.setTitleBarStyle(TitleBarStyle.hidden);
late final Size size;
final width = this.width ?? 16;
final height = this.height ?? 9;
final state = videoController!.player.state;
final width = state.width ?? this.width ?? 16;
final height = state.height ?? this.height ?? 9;
if (height > width) {
size = Size(400.0, 400.0 * height / width);
} else {

View File

@@ -157,8 +157,7 @@ class BottomControl extends StatelessWidget {
maxWidth - 40,
),
],
if (controller.showDmChart &&
videoDetailController.showDmTreandChart.value)
if (videoDetailController.showDmTreandChart.value)
if (videoDetailController.dmTrend.value?.dataOrNull
case final list?)
buildDmChart(theme, list, videoDetailController, 4.5),