perf: optimize home screen rendering with ListView.builder and improve image loading performance by persisting disk cache
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user