live first frame

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-10 11:35:24 +08:00
parent 98ce99202e
commit 3090cfc6f9
9 changed files with 215 additions and 138 deletions

View File

@@ -10,10 +10,12 @@ import 'package:flutter/material.dart' hide LayoutBuilder;
// 视频卡片 - 垂直布局
class LiveCardVApp extends StatelessWidget {
final CardLiveItem item;
final bool showFirstFrame;
const LiveCardVApp({
super.key,
required this.item,
this.showFirstFrame = false,
});
@override
@@ -40,7 +42,9 @@ class LiveCardVApp extends StatelessWidget {
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover!,
src: showFirstFrame
? (item.systemCover ?? item.cover)
: item.cover,
width: maxWidth,
height: maxHeight,
type: .emote,