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

@@ -43,7 +43,7 @@ class MemberCoinLikeItem extends StatelessWidget {
'bvid=${IdUtils.av2bv(int.parse(item.param!))}&cid=$cid',
arguments: {
'videoItem': item,
'heroTag': Utils.makeHeroTag(item.param)
'heroTag': Utils.makeHeroTag(item.param),
},
);
}
@@ -59,40 +59,42 @@ class MemberCoinLikeItem extends StatelessWidget {
children: [
AspectRatio(
aspectRatio: StyleString.aspectRatio,
child: LayoutBuilder(builder: (context, boxConstraints) {
double maxWidth = boxConstraints.maxWidth;
double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
radius: 0,
),
if (item.isCooperation == true)
const PBadge(
text: '合作',
top: 6,
right: 6,
)
else if (item.isSteins == true)
const PBadge(
text: '互动',
top: 6,
right: 6,
child: LayoutBuilder(
builder: (context, boxConstraints) {
double maxWidth = boxConstraints.maxWidth;
double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: item.cover,
width: maxWidth,
height: maxHeight,
radius: 0,
),
if (item.duration != null && item.duration! > 0)
PBadge(
bottom: 6,
right: 6,
type: PBadgeType.gray,
text: DurationUtil.formatDuration(item.duration),
)
],
);
}),
if (item.isCooperation == true)
const PBadge(
text: '合作',
top: 6,
right: 6,
)
else if (item.isSteins == true)
const PBadge(
text: '互动',
top: 6,
right: 6,
),
if (item.duration != null && item.duration! > 0)
PBadge(
bottom: 6,
right: 6,
type: PBadgeType.gray,
text: DurationUtil.formatDuration(item.duration),
),
],
);
},
),
),
Padding(
padding: const EdgeInsets.fromLTRB(5, 6, 0, 0),
@@ -129,7 +131,7 @@ class MemberCoinLikeItem extends StatelessWidget {
color: Theme.of(context).colorScheme.outline,
),
),
const SizedBox(width: 6)
const SizedBox(width: 6),
],
),
],