From 8ac478179438bfaec92a7edd600a331b2e35cca5 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Wed, 12 Jun 2024 14:10:19 -0400 Subject: [PATCH] tail blog cache change --- lib/Frontend/Widgets/tail_blog.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Frontend/Widgets/tail_blog.dart b/lib/Frontend/Widgets/tail_blog.dart index b4df6a7d..1cd98729 100644 --- a/lib/Frontend/Widgets/tail_blog.dart +++ b/lib/Frontend/Widgets/tail_blog.dart @@ -23,11 +23,12 @@ class TailBlog extends StatefulWidget { } List _wordpressPosts = []; +List results = []; +Map images = {}; class _TailBlogState extends State { FeedState feedState = FeedState.loading; - List results = []; - Map images = {}; + WordpressClient? client; @override @@ -187,7 +188,7 @@ class _TailBlogState extends State { followRedirects: true, ), ); - if (context.mounted && response.statusCode! < 400) { + if (response.statusCode! < 400) { data = Uint8List.fromList(response.data!); images[item.imageId!] = data; }