mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -38,9 +38,10 @@ import 'package:PiliPlus/plugin/pl_player/utils/fullscreen.dart';
|
||||
import 'package:PiliPlus/services/service_locator.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/accounts/account.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/extension/string_ext.dart';
|
||||
import 'package:PiliPlus/utils/image_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:PiliPlus/utils/storage_key.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
@@ -2534,7 +2535,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
plPlayerController.exitDesktopPip();
|
||||
} else if (isFullScreen) {
|
||||
plPlayerController.triggerFullScreen(status: false);
|
||||
} else if (Utils.isMobile &&
|
||||
} else if (PlatformUtils.isMobile &&
|
||||
!horizontalScreen &&
|
||||
!isPortrait) {
|
||||
verticalScreenForTwoSeconds();
|
||||
@@ -2567,7 +2568,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
title,
|
||||
// show current datetime
|
||||
...?timeBatteryWidgets,
|
||||
if (Utils.isDesktop && !plPlayerController.isDesktopPip)
|
||||
if (PlatformUtils.isDesktop && !plPlayerController.isDesktopPip)
|
||||
Obx(() {
|
||||
final isAlwaysOnTop = plPlayerController.isAlwaysOnTop.value;
|
||||
return SizedBox(
|
||||
@@ -2680,7 +2681,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
],
|
||||
if (isFullScreen || Utils.isDesktop) ...[
|
||||
if (isFullScreen || PlatformUtils.isDesktop) ...[
|
||||
SizedBox(
|
||||
width: 42,
|
||||
height: 34,
|
||||
@@ -2735,7 +2736,8 @@ class HeaderControlState extends State<HeaderControl>
|
||||
),
|
||||
),
|
||||
],
|
||||
if (Platform.isAndroid || (Utils.isDesktop && !isFullScreen))
|
||||
if (Platform.isAndroid ||
|
||||
(PlatformUtils.isDesktop && !isFullScreen))
|
||||
SizedBox(
|
||||
width: 42,
|
||||
height: 34,
|
||||
@@ -2745,7 +2747,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
padding: WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: () async {
|
||||
if (Utils.isDesktop) {
|
||||
if (PlatformUtils.isDesktop) {
|
||||
plPlayerController.toggleDesktopPip();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user