mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -214,6 +214,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
Alignment alignment = Alignment.center,
|
Alignment alignment = Alignment.center,
|
||||||
bool needDm = true,
|
bool needDm = true,
|
||||||
}) {
|
}) {
|
||||||
|
if (!plPlayerController.isLive) {
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
if (!isFullScreen && !plPlayerController.isDesktopPip) {
|
if (!isFullScreen && !plPlayerController.isDesktopPip) {
|
||||||
_liveRoomController.fsSC.value = null;
|
_liveRoomController.fsSC.value = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -684,7 +684,15 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
final state = player.state;
|
final state = player.state;
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: const Text('播放信息'),
|
title: const Text('播放信息'),
|
||||||
content: SingleChildScrollView(
|
contentPadding: const EdgeInsets.only(top: 16),
|
||||||
|
constraints: const BoxConstraints(maxWidth: 425),
|
||||||
|
content: Material(
|
||||||
|
type: MaterialType.transparency,
|
||||||
|
child: ListTileTheme(
|
||||||
|
contentPadding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 24,
|
||||||
|
),
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
@@ -751,8 +759,9 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
dense: true,
|
dense: true,
|
||||||
title: const Text("pitch"),
|
title: const Text("pitch"),
|
||||||
subtitle: Text(state.pitch.toString()),
|
subtitle: Text(state.pitch.toString()),
|
||||||
onTap: () =>
|
onTap: () => Utils.copyText(
|
||||||
Utils.copyText('pitch\n${state.pitch}'),
|
'pitch\n${state.pitch}',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
dense: true,
|
dense: true,
|
||||||
@@ -777,18 +786,22 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
state.volume.toString(),
|
state.volume.toString(),
|
||||||
),
|
),
|
||||||
onTap: () =>
|
onTap: () => Utils.copyText(
|
||||||
Utils.copyText('Volume\n${state.volume}'),
|
'Volume\n${state.volume}',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
dense: true,
|
dense: true,
|
||||||
title: const Text('hwdec'),
|
title: const Text('hwdec'),
|
||||||
subtitle: Text(hwdec),
|
subtitle: Text(hwdec),
|
||||||
onTap: () => Utils.copyText('hwdec\n$hwdec'),
|
onTap: () =>
|
||||||
|
Utils.copyText('hwdec\n$hwdec'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: Get.back,
|
onPressed: Get.back,
|
||||||
|
|||||||
Reference in New Issue
Block a user