fix(pagerenderer): 🐛 re-add offline image to map rendering

This commit is contained in:
Matyáš Caras 2023-07-04 00:20:46 +02:00
parent f5607abf0a
commit 48a9bea2f7
2 changed files with 17 additions and 5 deletions

View file

@ -465,8 +465,15 @@ class PageRenderer {
width: width * 0.8, width: width * 0.8,
height: height * 0.3, height: height * 0.3,
child: WidgetZoom( child: WidgetZoom(
zoomWidget: zoomWidget: CachedNetworkImage(
CachedNetworkImage(imageUrl: img.attributes["src"]!), imageUrl: img.attributes["src"]!,
errorWidget: (context, url, error) =>
(offlineImage != null)
? Image.file(offlineImage)
: Flexible(
child: Text(loc.imageError),
),
),
heroAnimationTag: 'tag', heroAnimationTag: 'tag',
), ),
), ),

View file

@ -318,6 +318,11 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.2" version: "2.0.2"
flutter_localizations:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_map: flutter_map:
dependency: "direct main" dependency: "direct main"
description: description:
@ -409,13 +414,13 @@ packages:
source: hosted source: hosted
version: "3.3.0" version: "3.3.0"
intl: intl:
dependency: transitive dependency: "direct main"
description: description:
name: intl name: intl
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.18.1" version: "0.18.0"
io: io:
dependency: transitive dependency: transitive
description: description: