mod: show video badge

Closes #176

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-15 20:12:00 +08:00
parent 2acbb17648
commit c02d828e2c
2 changed files with 9 additions and 9 deletions

View File

@@ -82,14 +82,14 @@ class VideoCardHMemberVideo extends StatelessWidget {
width: maxWidth, width: maxWidth,
height: maxHeight, height: maxHeight,
), ),
// if (videoItem.season != null) if (videoItem.badges?.isNotEmpty == true)
// PBadge( PBadge(
// text: '合集: ${videoItem.season?['count']}', text: videoItem.badges!
// right: 6.0, .map((item) => item.text)
// bottom: 6.0, .join('|'),
// type: 'gray', right: 6.0,
// ) top: 6.0,
// else ),
if (videoItem.duration != null) if (videoItem.duration != null)
PBadge( PBadge(
text: Utils.timeFormat(videoItem.duration), text: Utils.timeFormat(videoItem.duration),

View File

@@ -93,7 +93,7 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
semanticsLabel: content.title, semanticsLabel: content.title,
), ),
// ), // ),
if (content.badge != null && type == 'pgc') if (content?.badge?['text'] != null)
PBadge( PBadge(
text: content.badge['text'], text: content.badge['text'],
top: 8.0, top: 8.0,