You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PhotoManager.editor.deleteWithIds working properly on ios and up to android api 28. But not working on android 29.
Clone the example flutter_wechat_assets_picker project.
Go to single_assets_page.dart file.
Add this (PhotoManager.editor.deleteWithIds([assets.first.id]);) line in _selectedAssetDeleteButton method's gesture detector onTap callback to delete media.
Run app on emulator have api 29 and pick one photo from "Single" tab and see the selected assets panel.
Touch the selected photo the delete(X) button will be available.
Touch to delete button and you will continue to see your selected photo on gallery.
If you run app on emulator with api 28 or below the selected photos will be deleted.
[Test on api 27]
We want to delete selected image from the gallery. And it works fine on api 28 or below. https://streamable.com/iof195
[Test on api 29]
Please notice! After deleting the image it is not showing on gallery so its works fine on api 28 or below.
But on api 29 the deleted images showing again on gallery. Probably its not deleting anytime. https://streamable.com/tg429z
The text was updated successfully, but these errors were encountered:
if (result != null && result.isNotEmpty) {
setState(() {
selectedAssets = result; // Store selected assets in a list
});
deleteSelectedImages(); // Call the method to delete selected images
}
}
Future deleteSelectedImages() async {
if (selectedAssets != null && selectedAssets.isNotEmpty) {
List ids = selectedAssets.map((asset) => asset!.id).toList();
PhotoManager.editor.deleteWithIds working properly on ios and up to android api 28. But not working on android 29.
[Test on api 27]
We want to delete selected image from the gallery. And it works fine on api 28 or below.
https://streamable.com/iof195
[Test on api 29]
Please notice! After deleting the image it is not showing on gallery so its works fine on api 28 or below.
But on api 29 the deleted images showing again on gallery. Probably its not deleting anytime.
https://streamable.com/tg429z
The text was updated successfully, but these errors were encountered: