mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
mod: show pgc renewalTime
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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'];
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user