Skip to content

Commit

Permalink
tail blog cache change
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 12, 2024
1 parent 789e43f commit 8ac4781
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Frontend/Widgets/tail_blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ class TailBlog extends StatefulWidget {
}

List<Post> _wordpressPosts = [];
List<FeedItem> results = [];
Map<int, Uint8List> images = {};

class _TailBlogState extends State<TailBlog> {
FeedState feedState = FeedState.loading;
List<FeedItem> results = [];
Map<int, Uint8List> images = {};

WordpressClient? client;

@override
Expand Down Expand Up @@ -187,7 +188,7 @@ class _TailBlogState extends State<TailBlog> {
followRedirects: true,
),
);
if (context.mounted && response.statusCode! < 400) {
if (response.statusCode! < 400) {
data = Uint8List.fromList(response.data!);
images[item.imageId!] = data;
}
Expand Down

0 comments on commit 8ac4781

Please sign in to comment.