v1.3.4+60
All checks were successful
Flutter Schmutter / build (push) Successful in 5m30s

This commit is contained in:
2025-06-18 04:48:19 +02:00
parent ee2db04a36
commit 0d792fdf46
5 changed files with 125 additions and 63 deletions

View File

@ -12,34 +12,37 @@ class MediaTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () {
Get.toNamed('/${item.id}');
},
child: Stack(
fit: StackFit.expand,
children: [
Hero(
tag: 'media-${item.id}',
child: CachedNetworkImage(
imageUrl: item.thumbnailUrl,
fit: BoxFit.cover,
errorWidget: (context, url, error) => const Icon(Icons.error),
return RepaintBoundary(
child: InkWell(
onTap: () {
Get.toNamed('/${item.id}');
},
child: Stack(
fit: StackFit.expand,
children: [
Hero(
tag: 'media-${item.id}',
child: CachedNetworkImage(
imageUrl: item.thumbnailUrl,
fit: BoxFit.cover,
placeholder: (content, url) => Container(color: Colors.grey[900]),
errorWidget: (context, url, error) => const Icon(Icons.error),
),
),
),
Align(
alignment: Alignment.bottomRight,
child: Icon(
Icons.square,
color: switch (item.mode) {
1 => Colors.green,
2 => Colors.red,
_ => Colors.yellow,
},
size: 15.0,
Align(
alignment: Alignment.bottomRight,
child: Icon(
Icons.square,
color: switch (item.mode) {
1 => Colors.green,
2 => Colors.red,
_ => Colors.yellow,
},
size: 15.0,
),
),
),
],
],
),
),
);
}