diff --git a/packages/smooth_app/lib/cards/category_cards/raster_cache.dart b/packages/smooth_app/lib/cards/category_cards/raster_cache.dart index 312ca179244..dd86ec4c515 100644 --- a/packages/smooth_app/lib/cards/category_cards/raster_cache.dart +++ b/packages/smooth_app/lib/cards/category_cards/raster_cache.dart @@ -17,6 +17,7 @@ class RasterCache extends AbstractCache { if (fullFilenames.isEmpty) { return getDefaultUnknown(); } + return Image.network( iconUrl!, width: width, @@ -30,15 +31,25 @@ class RasterCache extends AbstractCache { if (loadingProgress == null) { return child; } - return RasterAsyncAsset( - AssetCacheHelper( - fullFilenames, - iconUrl!, - width: width, - height: height, - ), - ); + return _localAssetWidget(fullFilenames); }, + errorBuilder: ( + final BuildContext context, + final Object error, + final StackTrace? stackTrace, + ) => + _localAssetWidget(fullFilenames), + ); + } + + RasterAsyncAsset _localAssetWidget(List fullFilenames) { + return RasterAsyncAsset( + AssetCacheHelper( + fullFilenames, + iconUrl!, + width: width, + height: height, + ), ); } }