Fix loading breakage for folders without a loader
This commit is contained in:
parent
e917e4e568
commit
78f3294186
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ class _GalleryState extends State<Gallery> {
|
|||
}
|
||||
|
||||
bool _shouldLoadNextItems(int index) =>
|
||||
widget.asyncLoader != null &&
|
||||
!_isLoadingNext &&
|
||||
(index >= _collatedFiles.length - kEagerLoadTrigger) &&
|
||||
!_hasLoadedAll;
|
||||
|
|
Loading…
Add table
Reference in a new issue