mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
opt live back btn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -71,11 +71,17 @@ class LiveHeaderControl extends StatelessWidget {
|
|||||||
title: Row(
|
title: Row(
|
||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
if (isFullScreen)
|
if (isFullScreen || plPlayerController.isDesktopPip)
|
||||||
ComBtn(
|
ComBtn(
|
||||||
tooltip: '返回',
|
tooltip: '返回',
|
||||||
icon: const Icon(FontAwesomeIcons.arrowLeft, size: 15),
|
icon: const Icon(FontAwesomeIcons.arrowLeft, size: 15),
|
||||||
onTap: () => plPlayerController.triggerFullScreen(status: false),
|
onTap: () {
|
||||||
|
if (plPlayerController.isDesktopPip) {
|
||||||
|
plPlayerController.exitDesktopPip();
|
||||||
|
} else {
|
||||||
|
plPlayerController.triggerFullScreen(status: false);
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
child,
|
child,
|
||||||
ComBtn(
|
ComBtn(
|
||||||
|
|||||||
Reference in New Issue
Block a user