[BUG] UI display error after deleting photo. (删除照片后,UI显示错误)
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所示)
- Click on 'Custom' tab item
- Click on 'Multi tab picker'
- Click on 'Call the Picker'
- Select first photo in Recents (选中照片)
- Switch to another path (切换目录)
- Delete the selected photo in step 4 (删除步骤4选中的图片)
- Switch path to Recents (切换目录至 Recents)
- 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

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、安卓手机未测试。
你使用的是自定义的 tab 示例,请切换至首页的示例再进行测试。
你使用的是自定义的 tab 示例,请切换至首页的示例再进行测试。
首页的 Image picker,效果是一样的。
Unresolved reference: READ_MEDIA_AUDIO Unresolved reference: READ_MEDIA_VIDEO 我运行提示这个是咋回事啊老哥