show charging label

tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-10 17:22:15 +08:00
parent a9ceb04d07
commit 3ee8c68eac
7 changed files with 157 additions and 100 deletions

View File

@@ -94,11 +94,19 @@ class VideoCardHLater extends StatelessWidget {
width: maxWidth,
height: maxHeight,
),
PBadge(
text: videoItem.pgcLabel,
top: 6.0,
right: 6.0,
),
if (videoItem.isCharging == true)
const PBadge(
text: '充电专属',
top: 6.0,
right: 6.0,
type: PBadgeType.error,
)
else if (videoItem.pgcLabel != null)
PBadge(
text: videoItem.pgcLabel,
top: 6.0,
right: 6.0,
),
if (progress != null && progress != 0) ...[
PBadge(
text: progress == -1