mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +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(
|
||||
spacing: 10,
|
||||
children: [
|
||||
if (isFullScreen)
|
||||
if (isFullScreen || plPlayerController.isDesktopPip)
|
||||
ComBtn(
|
||||
tooltip: '返回',
|
||||
icon: const Icon(FontAwesomeIcons.arrowLeft, size: 15),
|
||||
onTap: () => plPlayerController.triggerFullScreen(status: false),
|
||||
onTap: () {
|
||||
if (plPlayerController.isDesktopPip) {
|
||||
plPlayerController.exitDesktopPip();
|
||||
} else {
|
||||
plPlayerController.triggerFullScreen(status: false);
|
||||
}
|
||||
},
|
||||
),
|
||||
child,
|
||||
ComBtn(
|
||||
|
||||
Reference in New Issue
Block a user