Skip to content

Commit afa4d5e

Browse files
authored
🐛 Reset the has more to load flag between path switching (#591)
Fixes #566
1 parent 0eb0441 commit afa4d5e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ that can be found in the LICENSE file. -->
1313

1414
- Fix the app bar of the viewer that is not animating.
1515
- Fix loading when no assets in the path.
16+
- Reset the has more to load flag between path switching.
1617

1718
## 9.0.3
1819

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
include: package:flutter_lints/flutter.yaml
22

3+
analyzer:
4+
errors:
5+
deprecated_member_use: ignore
6+
37
linter:
48
rules:
59
always_declare_return_types: true

lib/src/provider/asset_picker_provider.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ class DefaultAssetPickerProvider
389389
);
390390
if (currentPage == 0) {
391391
_currentAssets.clear();
392+
_hasMoreToLoad = null;
392393
} else if (list.isEmpty) {
393394
_hasMoreToLoad = false;
394395
}

0 commit comments

Comments
 (0)