Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-26 12:15:25 +08:00
parent c9a02f9c74
commit 25fca498fc
41 changed files with 313 additions and 286 deletions

View File

@@ -19,60 +19,57 @@ class FavFolderItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Container(
margin: EdgeInsets.zero,
child: GestureDetector(
onTap: () {
Get.toNamed(
'/favDetail',
arguments: item,
parameters: {
'mediaId': item.id.toString(),
'heroTag': heroTag,
},
)?.whenComplete(onPop);
},
behavior: HitTestBehavior.opaque,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DecoratedBox(
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(12)),
boxShadow: [
BoxShadow(
color: theme.colorScheme.onInverseSurface.withValues(
alpha: 0.4,
),
offset: const Offset(4, -12),
blurRadius: 0.0,
spreadRadius: 0.0,
return GestureDetector(
onTap: () {
Get.toNamed(
'/favDetail',
arguments: item,
parameters: {
'mediaId': item.id.toString(),
'heroTag': heroTag,
},
)?.whenComplete(onPop);
},
behavior: HitTestBehavior.opaque,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DecoratedBox(
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(12)),
boxShadow: [
BoxShadow(
color: theme.colorScheme.onInverseSurface.withValues(
alpha: 0.4,
),
],
),
child: Hero(
tag: heroTag,
child: NetworkImgLayer(
src: item.cover,
width: 180,
height: 110,
offset: const Offset(4, -12),
blurRadius: 0.0,
spreadRadius: 0.0,
),
],
),
child: Hero(
tag: heroTag,
child: NetworkImgLayer(
src: item.cover,
width: 180,
height: 110,
),
),
const SizedBox(height: 8),
Text(
' ${item.title}',
overflow: TextOverflow.fade,
maxLines: 1,
),
const SizedBox(height: 8),
Text(
' ${item.title}',
overflow: TextOverflow.fade,
maxLines: 1,
),
Text(
'${item.mediaCount}条视频 · ${FavUtils.isPublicFavText(item.attr)}',
style: theme.textTheme.labelSmall!.copyWith(
color: theme.colorScheme.outline,
),
Text(
'${item.mediaCount}条视频 · ${FavUtils.isPublicFavText(item.attr)}',
style: theme.textTheme.labelSmall!.copyWith(
color: theme.colorScheme.outline,
),
),
],
),
),
],
),
);
}