瀏覽代碼

Cache more stuff in the listview

Vishnu Mohandas 5 年之前
父節點
當前提交
1c6060f09b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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,
     );
   }