This commit is contained in:
guozhigq
2024-02-08 22:46:39 +08:00
parent d258474a5a
commit 10b928474b
2 changed files with 59 additions and 32 deletions

View File

@ -184,18 +184,32 @@ class VideoStat extends StatelessWidget {
tileMode: TileMode.mirror, tileMode: TileMode.mirror,
), ),
), ),
child: RichText( child: Row(
maxLines: 1, mainAxisAlignment: MainAxisAlignment.spaceBetween,
textAlign: TextAlign.justify,
softWrap: false,
text: TextSpan(
style: const TextStyle(fontSize: 11, color: Colors.white),
children: [ children: [
TextSpan(text: liveItem!.areaName!), Text(
TextSpan(text: liveItem!.watchedShow!['text_small']), liveItem!.areaName!,
style: const TextStyle(fontSize: 11, color: Colors.white),
),
Text(
liveItem!.watchedShow!['text_small'],
style: const TextStyle(fontSize: 11, color: Colors.white),
),
], ],
), ),
),
// child: RichText(
// maxLines: 1,
// textAlign: TextAlign.justify,
// softWrap: false,
// text: TextSpan(
// style: const TextStyle(fontSize: 11, color: Colors.white),
// children: [
// TextSpan(text: liveItem!.areaName!),
// TextSpan(text: liveItem!.watchedShow!['text_small']),
// ],
// ),
// ),
); );
} }
} }

View File

@ -79,28 +79,41 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
backgroundColor: Colors.black, backgroundColor: Colors.black,
body: Stack( body: Stack(
children: [ children: [
Obx( // Obx(
() => // () => Positioned.fill(
_liveRoomController.roomInfoH5.value.roomInfo?.appBackground != // child: Opacity(
'' // opacity: 0.8,
? Positioned.fill( // child: _liveRoomController
// .roomInfoH5.value.roomInfo?.appBackground !=
// '' &&
// _liveRoomController
// .roomInfoH5.value.roomInfo?.appBackground !=
// null
// ? NetworkImgLayer(
// width: Get.width,
// height: Get.height,
// src: _liveRoomController
// .roomInfoH5.value.roomInfo?.appBackground ??
// '',
// )
// : Image.asset(
// 'assets/images/live/default_bg.webp',
// width: Get.width,
// height: Get.height,
// ),
// ),
// ),
// ),
Positioned.fill(
child: Opacity( child: Opacity(
opacity: 0.8, opacity: 0.8,
child: NetworkImgLayer( child: Image.asset(
width: Get.width,
height: Get.height,
src: _liveRoomController
.roomInfoH5.value.roomInfo?.appBackground ??
'',
),
),
)
: Image.asset(
'assets/images/live/default_bg.webp', 'assets/images/live/default_bg.webp',
width: Get.width, width: Get.width,
height: Get.height, height: Get.height,
), ),
), ),
),
Column( Column(
children: [ children: [
AppBar( AppBar(