mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: live room bg
Closes #422 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -191,11 +191,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned.fill(
|
||||||
left: 0,
|
|
||||||
top: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: 0.6,
|
opacity: 0.6,
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
@@ -205,30 +201,22 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Obx(
|
Obx(
|
||||||
() => Positioned(
|
() => _liveRoomController
|
||||||
left: 0,
|
.roomInfoH5.value.roomInfo?.appBackground?.isNotEmpty ==
|
||||||
top: 0,
|
true
|
||||||
right: 0,
|
? Positioned.fill(
|
||||||
bottom: 0,
|
child: Opacity(
|
||||||
child: _liveRoomController
|
|
||||||
.roomInfoH5.value.roomInfo?.appBackground !=
|
|
||||||
'' &&
|
|
||||||
_liveRoomController
|
|
||||||
.roomInfoH5.value.roomInfo?.appBackground !=
|
|
||||||
null
|
|
||||||
? Opacity(
|
|
||||||
opacity: 0.6,
|
opacity: 0.6,
|
||||||
child: NetworkImgLayer(
|
child: NetworkImgLayer(
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
height: Get.height,
|
height: Get.height,
|
||||||
type: 'bg',
|
type: 'bg',
|
||||||
src: _liveRoomController
|
src: _liveRoomController
|
||||||
.roomInfoH5.value.roomInfo?.appBackground ??
|
.roomInfoH5.value.roomInfo!.appBackground,
|
||||||
'',
|
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
: const SizedBox(),
|
)
|
||||||
),
|
: const SizedBox(),
|
||||||
),
|
),
|
||||||
isPortrait
|
isPortrait
|
||||||
? Scaffold(
|
? Scaffold(
|
||||||
@@ -382,7 +370,10 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
onPointerDown: (_) {
|
onPointerDown: (_) {
|
||||||
_node.unfocus();
|
_node.unfocus();
|
||||||
},
|
},
|
||||||
child: SizedBox(
|
child: Container(
|
||||||
|
color: plPlayerController.isFullScreen.value
|
||||||
|
? Colors.black
|
||||||
|
: null,
|
||||||
width: plPlayerController.isFullScreen.value
|
width: plPlayerController.isFullScreen.value
|
||||||
? Get.size.width
|
? Get.size.width
|
||||||
: videoWidth,
|
: videoWidth,
|
||||||
@@ -429,7 +420,8 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
onPointerDown: (_) {
|
onPointerDown: (_) {
|
||||||
_node.unfocus();
|
_node.unfocus();
|
||||||
},
|
},
|
||||||
child: SizedBox(
|
child: Container(
|
||||||
|
color: Colors.black,
|
||||||
width: Get.size.width,
|
width: Get.size.width,
|
||||||
height: plPlayerController.isFullScreen.value
|
height: plPlayerController.isFullScreen.value
|
||||||
? Get.size.height
|
? Get.size.height
|
||||||
|
|||||||
Reference in New Issue
Block a user