mod: show pgc renewalTime

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-12 21:26:50 +08:00
parent 15f84712cd
commit 17548e935e
3 changed files with 12 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class PBadge extends StatelessWidget {
// 边框色
Color borderColor = Colors.transparent;
if (type == 'gray') {
bgColor = Colors.black54.withOpacity(0.4);
bgColor = Colors.black54.withOpacity(0.45);
color = Colors.white;
} else if (type == 'color') {
bgColor = t.secondaryContainer.withOpacity(0.5);

View File

@@ -68,8 +68,10 @@ class BangumiListItemModel with MultiSelectData {
String? titleIcon;
Map? newEp;
String? progress;
String? renewalTime;
BangumiListItemModel.fromJson(Map<String, dynamic> json) {
renewalTime = json['renewal_time'];
badge = json['badge'] == '' ? null : json['badge'];
badgeType = json['badge_type'];
cover = json['cover'];

View File

@@ -57,7 +57,15 @@ class BangumiCardV extends StatelessWidget {
bottom: null,
left: null,
),
if (bangumiItem.order != null)
if (bangumiItem.isFinish == 0 &&
bangumiItem.renewalTime?.isNotEmpty == true)
PBadge(
text: bangumiItem.renewalTime,
bottom: 6,
left: 6,
type: 'gray',
)
else if (bangumiItem.order != null)
PBadge(
text: bangumiItem.order,
top: null,