Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 21:13:16 +08:00
parent 55bed2e830
commit e770e39c8f
59 changed files with 1388 additions and 1265 deletions

View File

@@ -26,6 +26,7 @@ class LiveHeaderControl extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isFullScreen = plPlayerController.isFullScreen.value;
return AppBar(
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
@@ -35,7 +36,7 @@ class LiveHeaderControl extends StatelessWidget {
title: Row(
spacing: 10,
children: [
if (plPlayerController.isFullScreen.value)
if (isFullScreen)
SizedBox(
width: 35,
height: 35,
@@ -64,7 +65,7 @@ class LiveHeaderControl extends StatelessWidget {
style: const TextStyle(
fontSize: 15, height: 1, color: Colors.white),
),
if (plPlayerController.isFullScreen.value && upName != null)
if (isFullScreen && upName != null)
Text(
upName!,
maxLines: 1,
@@ -93,31 +94,33 @@ class LiveHeaderControl extends StatelessWidget {
),
),
Obx(
() => SizedBox(
width: 35,
height: 35,
child: IconButton(
onPressed: () {
plPlayerController.onlyPlayAudio.value =
!plPlayerController.onlyPlayAudio.value;
onPlayAudio();
},
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
() {
final onlyPlayAudio = plPlayerController.onlyPlayAudio.value;
return SizedBox(
width: 35,
height: 35,
child: IconButton(
onPressed: () {
plPlayerController.onlyPlayAudio.value = !onlyPlayAudio;
onPlayAudio();
},
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
icon: onlyPlayAudio
? const Icon(
size: 18,
MdiIcons.musicCircle,
color: Colors.white,
)
: const Icon(
size: 18,
MdiIcons.musicCircleOutline,
color: Colors.white,
),
),
icon: plPlayerController.onlyPlayAudio.value
? const Icon(
size: 18,
MdiIcons.musicCircle,
color: Colors.white,
)
: const Icon(
size: 18,
MdiIcons.musicCircleOutline,
color: Colors.white,
),
),
),
);
},
),
if (Platform.isAndroid)
SizedBox(