-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Ability to choose more assets than allowed to (maxAssets) #115
Comments
Is this reproducible in other methods? |
Reproducible whenever the preview is displayed. Select 9 assets, preview an asset which was not selected and select it => You have 10 assets selected. |
Then we should add a count check at here maybe. flutter_wechat_assets_picker/lib/src/delegates/asset_picker_viewer_builder_delegate.dart Line 123 in cacb7b9
|
This also requires transferring |
Another option, is to use the |
This sounds more reasonable. |
Merge is done, I'm closing this issue |
Bug description
Ability to choose more items than the picker was allowed to (
maxAssets
).How to reproduce
Expected behavior
Should not allow selection of more than maxAssets
Screenshots
For example, I selected 12 assets:
Device information
Additional context
Let me know what are your thoughts on solving this, I can submit a PR.
The text was updated successfully, but these errors were encountered: