mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -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('账号未登录');
|
||||
|
||||
@@ -1937,7 +1937,8 @@ class HeaderControlState extends TripleState<HeaderControl> {
|
||||
},
|
||||
),
|
||||
),
|
||||
if (!isFullScreen || !isPortrait)
|
||||
if (!plPlayerController.isDesktopPip &&
|
||||
(!isFullScreen || !isPortrait))
|
||||
SizedBox(
|
||||
width: 42,
|
||||
height: 34,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user