Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -32,37 +32,39 @@ class PgcCardV extends StatelessWidget {
children: [
AspectRatio(
aspectRatio: 0.75,
child: LayoutBuilder(builder: (context, boxConstraints) {
final double maxWidth = boxConstraints.maxWidth;
final double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
),
PBadge(
text: item.badge,
top: 6,
right: 6,
bottom: null,
left: null,
),
if (item.isFinish == 0 &&
item.renewalTime?.isNotEmpty == true)
child: LayoutBuilder(
builder: (context, boxConstraints) {
final double maxWidth = boxConstraints.maxWidth;
final double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
),
PBadge(
text: item.renewalTime,
bottom: 6,
left: 6,
type: PBadgeType.gray,
)
],
);
}),
text: item.badge,
top: 6,
right: 6,
bottom: null,
left: null,
),
if (item.isFinish == 0 &&
item.renewalTime?.isNotEmpty == true)
PBadge(
text: item.renewalTime,
bottom: 6,
left: 6,
type: PBadgeType.gray,
),
],
);
},
),
),
content(context)
content(context),
],
),
),

View File

@@ -33,34 +33,36 @@ class PgcCardVTimeline extends StatelessWidget {
children: [
AspectRatio(
aspectRatio: 0.75,
child: LayoutBuilder(builder: (context, boxConstraints) {
final double maxWidth = boxConstraints.maxWidth;
final double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
),
if (item.follow == 1)
const PBadge(
text: '已追番',
right: 6,
top: 6,
child: LayoutBuilder(
builder: (context, boxConstraints) {
final double maxWidth = boxConstraints.maxWidth;
final double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
),
PBadge(
text: '${item.pubTime}',
left: 6,
bottom: 6,
type: PBadgeType.gray,
),
],
);
}),
if (item.follow == 1)
const PBadge(
text: '已追番',
right: 6,
top: 6,
),
PBadge(
text: '${item.pubTime}',
left: 6,
bottom: 6,
type: PBadgeType.gray,
),
],
);
},
),
),
content(context)
content(context),
],
),
),