From a5d3d160c84e9ba2852c2a2463330cacbb327b70 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 12 Dec 2024 23:22:19 +0800 Subject: [PATCH 1/2] fix #95 --- lib/pages/reader/images.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/reader/images.dart b/lib/pages/reader/images.dart index 9998775..55fba46 100644 --- a/lib/pages/reader/images.dart +++ b/lib/pages/reader/images.dart @@ -651,7 +651,7 @@ ImageProvider _createImageProviderFromKey( var reader = context.reader; return ReaderImageProvider( imageKey, - reader.type.comicSource!.key, + reader.type.comicSource?.key, reader.cid, reader.eid, ); From 092eb59c1062ae53afdf75dadaa11bd011f7267f Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 12 Dec 2024 23:28:54 +0800 Subject: [PATCH 2/2] fix #94 --- lib/pages/favorites/favorites_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/favorites/favorites_page.dart b/lib/pages/favorites/favorites_page.dart index 16f23dc..20e14d9 100644 --- a/lib/pages/favorites/favorites_page.dart +++ b/lib/pages/favorites/favorites_page.dart @@ -152,14 +152,14 @@ class _FavoritesPageState extends State { ); } if (!isNetwork) { - return _LocalFavoritesPage(folder: folder!, key: Key(folder!)); + return _LocalFavoritesPage(folder: folder!, key: PageStorageKey(folder!)); } else { var favoriteData = getFavoriteDataOrNull(folder!); if (favoriteData == null) { folder = null; return buildBody(); } else { - return NetworkFavoritePage(favoriteData, key: Key(folder!)); + return NetworkFavoritePage(favoriteData, key: PageStorageKey(folder!)); } } }