fluttercandies / flutter_wechat_assets_picker

An image picker (also with video and audio) for Flutter projects based on the WeChat's UI.
https://pub.dev/packages/wechat_assets_picker
Apache License 2.0
1.5k stars 437 forks source link

[BUG] Preview Feature is not working correctly in IOS #601

Open neody3 opened 2 months ago

neody3 commented 2 months ago

Describe the bug

Preview Feature is not working correctly in IOS How to reproduce

Steps to reproduce the behavior:

  1. Go to Preview screen
  2. Unselect all images
  3. Confirm button still clickable when no images selected

Expected behavior

Confirm button is not clickable when no images selected

Screenshots (If contains)

Version information

Additional context

I found that compare two lists is not good here. Should we use listEquals to compare two lists? https://api.flutter.dev/flutter/foundation/listEquals.html https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/f0a65eb770c54401324b44557676eee423eb26bf/lib/src/delegates/asset_picker_viewer_builder_delegate.dart#L131

AlexV525 commented 2 months ago

I found that compare two lists is not good here. Should we use listEquals to compare two lists? https://api.flutter.dev/flutter/foundation/listEquals.html

https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/f0a65eb770c54401324b44557676eee423eb26bf/lib/src/delegates/asset_picker_viewer_builder_delegate.dart#L131

Not related.