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,
height: maxHeight,
),
// if (videoItem.season != null)
// PBadge(
// text: '合集: ${videoItem.season?['count']}',
// right: 6.0,
// bottom: 6.0,
// type: 'gray',
// )
// else
if (videoItem.badges?.isNotEmpty == true)
PBadge(
text: videoItem.badges!
.map((item) => item.text)
.join('|'),
right: 6.0,
top: 6.0,
),
if (videoItem.duration != null)
PBadge(
text: Utils.timeFormat(videoItem.duration),