Browse Source

Set the initial state of the pull-down widget to `refreshing`

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

+ 1 - 1
lib/ui/gallery.dart

@@ -34,7 +34,7 @@ class _GalleryState extends State<Gallery> {
   Set<Photo> _selectedPhotos = HashSet<Photo>();
   Set<Photo> _selectedPhotos = HashSet<Photo>();
   List<Photo> _photos;
   List<Photo> _photos;
   RefreshController _refreshController =
   RefreshController _refreshController =
-      RefreshController(initialRefresh: false);
+      RefreshController(initialRefresh: true);
   StreamSubscription<PhotoOpenedEvent> _subscription;
   StreamSubscription<PhotoOpenedEvent> _subscription;
   Photo _openedPhoto;
   Photo _openedPhoto;