perf: optimize home screen rendering with ListView.builder and improve image loading performance by persisting disk cache

This commit is contained in:
pradeepkumar committed 2026-04-10 20:18:21 +05:30
1 parent cdb918fae8
commit 1abcc2416f
3 files changed
+25 -32

No files matched your search

+2
View File
@@ -112,6 +112,8 @@ class _S3ImageState extends State<S3Image> {
height: widget.height,
fit: widget.fit,
alignment: widget.alignment,
fadeInDuration: const Duration(milliseconds: 200),
fadeOutDuration: const Duration(milliseconds: 100),
placeholder: (ctx, _) => _buildPlaceholder(ctx),
errorWidget: (ctx, _, err) {
// On error (expired URL), evict and retry once