Show placeholder when image failed to load

This commit is contained in:
Ming Ming 2021-10-17 18:17:47 +08:00
parent 2502c85ff1
commit dd93a9eb2a

View file

@ -190,6 +190,11 @@ class _SharingBrowserState extends State<SharingBrowser> {
fadeInDuration: const Duration(),
filterQuality: FilterQuality.high,
imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet,
errorWidget: (context, url, error) => Icon(
Icons.image_not_supported,
size: 32,
color: AppTheme.getUnfocusedIconColor(context),
),
),
label: shares.first.share.filename,
description: shares.first.share.uidOwner == widget.account.username