mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-27 03:28:40 +00:00
fix: member archive widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -25,8 +25,6 @@ class VideoCardHMemberVideo extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final int aid = int.tryParse(videoItem.param ?? '') ?? -1;
|
|
||||||
final String bvid = videoItem.bvid ?? '';
|
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
InkWell(
|
InkWell(
|
||||||
@@ -45,11 +43,14 @@ class VideoCardHMemberVideo extends StatelessWidget {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (videoItem.bvid == null || videoItem.firstCid == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/video?bvid=$bvid&cid=${videoItem.firstCid}',
|
'/video?bvid=${videoItem.bvid}&cid=${videoItem.firstCid}',
|
||||||
arguments: {
|
arguments: {
|
||||||
'heroTag': Utils.makeHeroTag(aid),
|
'heroTag': Utils.makeHeroTag(videoItem.bvid),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -136,11 +137,13 @@ class VideoCardHMemberVideo extends StatelessWidget {
|
|||||||
videoItem.title ?? '',
|
videoItem.title ?? '',
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: videoItem.bvid == bvid ? FontWeight.bold : null,
|
fontWeight: videoItem.bvid != null && videoItem.bvid == bvid
|
||||||
|
? FontWeight.bold
|
||||||
|
: null,
|
||||||
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
|
fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize,
|
||||||
height: 1.42,
|
height: 1.42,
|
||||||
letterSpacing: 0.3,
|
letterSpacing: 0.3,
|
||||||
color: videoItem.bvid == bvid
|
color: videoItem.bvid != null && videoItem.bvid == bvid
|
||||||
? Theme.of(context).colorScheme.primary
|
? Theme.of(context).colorScheme.primary
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user