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

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

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