Skip to content

Commit 55e5f33

Browse files
committed
🐛 ⚡ Fix wrong properties usage causing infinite build.
1 parent a51146c commit 55e5f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/widget/asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ class AssetPicker extends StatelessWidget {
671671
itemCount: currentAssets.length,
672672
itemBuilder: (BuildContext _, int index) {
673673
if (index == currentAssets.length - gridCount * 3 &&
674-
Provider.of<AssetPickerProvider>(_).hasAssetsToDisplay) {
674+
_.read<AssetPickerProvider>().hasMoreToLoad) {
675675
provider.loadMoreAssets();
676676
}
677677
final AssetEntity asset = currentAssets.elementAt(index);

0 commit comments

Comments
 (0)