Skip to content
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] UI display error after deleting photo. (删除照片后,UI显示错误) #834

Closed
voixstudio opened this issue Sep 8, 2022 · 3 comments

Comments

@voixstudio
Copy link

Describe the bug
UI display error after deleting photo.
照片从手机中删除后,app切换相册目录时UI显示错误。

How to reproduce
Use the example from the project.
使用官方项目中的 example。

Steps to reproduce the behavior:
case A: Screenshots 1 (如图1所示)

  1. Click on 'Custom' tab item
  2. Click on 'Multi tab picker'
  3. Click on 'Call the Picker'
  4. Select first photo in Recents (选中照片)
  5. Switch to another path (切换目录)
  6. Delete the selected photo in step 4 (删除步骤4选中的图片)
  7. Switch path to Recents (切换目录至 Recents)
  8. Display error: photo is hide but selected list is not update (图片不显示,但是数量未更新)

case B: Screenshots 2 (如图2所示)
1...
2...
3...
4. Delete all photo in 'A' path (删除目录A中的所有照片)
5. Switch to path 'A' (切换目录至A)
6. It's always loading (一直在加载中)
7. Can't switch path (不能切换目录)

Expected behavior
like WeChat: Photos are still displayed after being deleted.
跟微信类型:照片从手机中删除后,app切换相册目录时,该照片仍然显示。

Screenshots
Simulator Screen Shot - iPhone 13 - 2022-09-08 at 14 56 22
Simulator Screen Shot - iPhone 13 - 2022-09-08 at 15 48 41

Version information

  • Device: iPhone 6P or Simulator
  • OS: iOS 15
  • Package Version: 8.0.2
  • Flutter Version: v3.0.0

Additional context
1、猜测为切换目录时,更新目录下的资源导致。
2、微信中删除照片,仍然可以选择,并且可以正常发送。
3、建议跟微信类似,如果删除照片后,切换目录时更新资源,可能会导致其他UI显示错误: 当前页面的刷新问题、目录列表的刷新问题、选中状态的更新问题等。
4、安卓手机未测试。

@AlexV525
Copy link
Member

你使用的是自定义的 tab 示例,请切换至首页的示例再进行测试。

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2022
@voixstudio
Copy link
Author

你使用的是自定义的 tab 示例,请切换至首页的示例再进行测试。

首页的 Image picker,效果是一样的。

@AlexV525 AlexV525 transferred this issue from fluttercandies/flutter_wechat_assets_picker Sep 22, 2022
@AlexV525 AlexV525 reopened this Sep 22, 2022
@zhangbangbang888

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants