Skip to content

Commit dc5911e

Browse files
JamieYeeAlexV525
andauthored
Fix selecting when reached the max asset limit in the preview (#648)
Fixes #607 --------- Co-authored-by: Alex Li <github@alexv525.com>
1 parent 29c2b8a commit dc5911e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/delegates/asset_picker_viewer_builder_delegate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ abstract class AssetPickerViewerBuilderDelegate<Asset, Path> {
272272
}
273273

274274
void selectAsset(Asset entity) {
275-
if (maxAssets != null && selectedCount >= maxAssets!) {
275+
if (maxAssets != null && selectedCount > maxAssets!) {
276276
return;
277277
}
278278
provider?.selectAsset(entity);

0 commit comments

Comments
 (0)