fix: 视频播放器封面异常

This commit is contained in:
guozhigq
2024-05-05 10:06:26 +08:00
parent 06e943027f
commit bb4325768f
2 changed files with 10 additions and 5 deletions

View File

@ -323,11 +323,13 @@ class _VideoDetailPageState extends State<VideoDetailPage>
children: [
GestureDetector(
onTap: handlePlay,
child: Image.network(
vdCtr.videoItem['pic'],
width: Get.width,
height: videoHeight,
fit: BoxFit.cover, // 适应方式根据需要调整
child: Obx(
() => NetworkImgLayer(
src: vdCtr.cover.value,
width: Get.width,
height: videoHeight,
type: 'emote',
),
),
),
buildCustomAppBar(),