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; Color borderColor = Colors.transparent;
if (type == 'gray') { if (type == 'gray') {
bgColor = Colors.black54.withOpacity(0.4); bgColor = Colors.black54.withOpacity(0.45);
color = Colors.white; color = Colors.white;
} else if (type == 'color') { } else if (type == 'color') {
bgColor = t.secondaryContainer.withOpacity(0.5); bgColor = t.secondaryContainer.withOpacity(0.5);

View File

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

View File

@@ -57,7 +57,15 @@ class BangumiCardV extends StatelessWidget {
bottom: null, bottom: null,
left: 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( PBadge(
text: bangumiItem.order, text: bangumiItem.order,
top: null, top: null,