mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-07 01:39:18 +08:00
@@ -1116,7 +1116,7 @@ class VideoDetailController extends GetxController
|
|||||||
bool isQuerying = false;
|
bool isQuerying = false;
|
||||||
|
|
||||||
final Rx<List<LanguageItem>?> languages = Rx<List<LanguageItem>?>(null);
|
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) {
|
void setLanguage(String language) {
|
||||||
if (!isLoginVideo) {
|
if (!isLoginVideo) {
|
||||||
SmartDialog.showToast('账号未登录');
|
SmartDialog.showToast('账号未登录');
|
||||||
|
|||||||
@@ -1937,7 +1937,8 @@ class HeaderControlState extends TripleState<HeaderControl> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!isFullScreen || !isPortrait)
|
if (!plPlayerController.isDesktopPip &&
|
||||||
|
(!isFullScreen || !isPortrait))
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 42,
|
width: 42,
|
||||||
height: 34,
|
height: 34,
|
||||||
|
|||||||
@@ -279,8 +279,9 @@ class PlPlayerController {
|
|||||||
windowManager.setTitleBarStyle(TitleBarStyle.hidden);
|
windowManager.setTitleBarStyle(TitleBarStyle.hidden);
|
||||||
|
|
||||||
late final Size size;
|
late final Size size;
|
||||||
final width = this.width ?? 16;
|
final state = videoController!.player.state;
|
||||||
final height = this.height ?? 9;
|
final width = state.width ?? this.width ?? 16;
|
||||||
|
final height = state.height ?? this.height ?? 9;
|
||||||
if (height > width) {
|
if (height > width) {
|
||||||
size = Size(400.0, 400.0 * height / width);
|
size = Size(400.0, 400.0 * height / width);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -157,8 +157,7 @@ class BottomControl extends StatelessWidget {
|
|||||||
maxWidth - 40,
|
maxWidth - 40,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (controller.showDmChart &&
|
if (videoDetailController.showDmTreandChart.value)
|
||||||
videoDetailController.showDmTreandChart.value)
|
|
||||||
if (videoDetailController.dmTrend.value?.dataOrNull
|
if (videoDetailController.dmTrend.value?.dataOrNull
|
||||||
case final list?)
|
case final list?)
|
||||||
buildDmChart(theme, list, videoDetailController, 4.5),
|
buildDmChart(theme, list, videoDetailController, 4.5),
|
||||||
|
|||||||
Reference in New Issue
Block a user