Explorar o código

Cache more stuff in the listview

Vishnu Mohandas %!s(int64=5) %!d(string=hai) anos
pai
achega
1c6060f09b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,
     );
   }