mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: show video badge
Closes #176 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user