mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Show placeholder when image failed to load
This commit is contained in:
parent
2502c85ff1
commit
dd93a9eb2a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue