diff --git a/lib/components/avatar.dart b/lib/components/avatar.dart index 943d6b2..5731471 100644 --- a/lib/components/avatar.dart +++ b/lib/components/avatar.dart @@ -40,7 +40,10 @@ class Avatar extends StatelessWidget { child: CircleAvatar( radius: size / 2, backgroundImage: mxContent.mxc?.isNotEmpty ?? false - ? AdvancedNetworkImage(src) + ? AdvancedNetworkImage( + src, + useDiskCache: true, + ) : null, backgroundColor: mxContent.mxc.isEmpty ? name?.color ?? Theme.of(context).secondaryHeaderColor diff --git a/lib/components/content_banner.dart b/lib/components/content_banner.dart index deebef0..151a6cb 100644 --- a/lib/components/content_banner.dart +++ b/lib/components/content_banner.dart @@ -51,7 +51,10 @@ class ContentBanner extends StatelessWidget { ? Image( height: 300, fit: BoxFit.cover, - image: AdvancedNetworkImage(src), + image: AdvancedNetworkImage( + src, + useDiskCache: true, + ), ) : Icon(defaultIcon, size: 300) : Icon(defaultIcon, size: 300), diff --git a/pubspec.lock b/pubspec.lock index c2ca159..eb76e15 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -274,7 +274,7 @@ packages: name: intl url: "https://pub.dartlang.org" source: hosted - version: "0.16.0" + version: "0.16.1" intl_translation: dependency: "direct main" description: @@ -619,21 +619,21 @@ packages: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.9.4" + version: "1.13.0" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.11" + version: "0.2.15" test_core: dependency: transitive description: name: test_core url: "https://pub.dartlang.org" source: hosted - version: "0.2.15" + version: "0.3.1" typed_data: dependency: transitive description: @@ -718,6 +718,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + url: "https://pub.dartlang.org" + source: hosted + version: "0.5.0+1" webview_flutter: dependency: "direct main" description: