Fix loading breakage for folders without a loader

This commit is contained in:
Vishnu Mohandas 2020-07-16 06:04:43 +05:30
parent e917e4e568
commit 78f3294186

View file

@ -153,6 +153,7 @@ class _GalleryState extends State<Gallery> {
}
bool _shouldLoadNextItems(int index) =>
widget.asyncLoader != null &&
!_isLoadingNext &&
(index >= _collatedFiles.length - kEagerLoadTrigger) &&
!_hasLoadedAll;