Browse Source

Cache more stuff in the listview

Vishnu Mohandas 5 năm trước cách đây
mục cha
commit
1c6060f09b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      lib/ui/gallery.dart

+ 1 - 0
lib/ui/gallery.dart

@@ -37,6 +37,7 @@ class _GalleryState extends State<Gallery> {
       itemCount: _collatedPhotos.length,
       itemBuilder: _buildListItem,
       controller: _scrollController,
+      cacheExtent: 2000,
     );
   }