refactor: use ProxyImg widget

This commit is contained in:
2025-05-16 12:22:31 +01:00
parent 244a0aad38
commit dcf42e7a78
8 changed files with 73 additions and 63 deletions

View File

@ -77,16 +77,9 @@ class StreamCardsWidget extends StatelessWidget {
onTap: () {
launchUrl(Uri.parse(link));
},
child: CachedNetworkImage(
imageUrl: proxyImg(context, image!),
errorWidget:
(_, _, _) => SvgPicture.asset(
"assets/svg/logo.svg",
height: 40,
),
),
child: ProxyImg(url: link, placeholderSize: 40),
)
: CachedNetworkImage(imageUrl: proxyImg(context, image!)),
: ProxyImg(url: link, placeholderSize: 40),
),
MarkdownBody(
data: card.content,