mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
show video label
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -99,7 +99,30 @@ class VideoCardVMemberHome extends StatelessWidget {
|
||||
size: PBadgeSize.small,
|
||||
type: PBadgeType.gray,
|
||||
text: DurationUtil.formatDuration(videoItem.duration),
|
||||
),
|
||||
if (videoItem.badges?.isNotEmpty == true)
|
||||
PBadge(
|
||||
text: videoItem.badges!
|
||||
.map((e) => e.text ?? '')
|
||||
.join('|'),
|
||||
top: 6,
|
||||
right: 6,
|
||||
type: videoItem.badges!.first.text == '充电专属'
|
||||
? PBadgeType.error
|
||||
: PBadgeType.primary,
|
||||
)
|
||||
else if (videoItem.isCooperation == true)
|
||||
const PBadge(
|
||||
text: '合作',
|
||||
top: 6,
|
||||
right: 6,
|
||||
)
|
||||
else if (videoItem.isSteins == true)
|
||||
const PBadge(
|
||||
text: '互动',
|
||||
top: 6,
|
||||
right: 6,
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user