mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -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),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user