-
Notifications
You must be signed in to change notification settings - Fork 371
Closed
Description
Describe the bug
When using AssetPicker.pickAssets with requestType: RequestType.video on iOS, the picker still returns both images and videos, instead of only videos. Android behaves correctly.
How to reproduce
Steps to reproduce the behavior:
- Use the following code in a Flutter app:
final List<AssetEntity>? assets = await AssetPicker.pickAssets(
context,
pickerConfig: AssetPickerConfig(
maxAssets: 1,
requestType: RequestType.video,
),
);- Run the app on an iOS device (iPhone 13, iOS 18.3).
- Open the asset picker and select assets.
- Observe that both images and videos are shown in the picker.
Expected behavior
The asset picker should display only video assets, consistent with requestType: RequestType.video.
Version information
- Device: iPhone 13
- OS: iOS 18.3
- Package Version: wechat_assets_picker 9.8.0
- Flutter Version: 3.35.4
Additional context
- The issue only occurs on iOS. Android correctly filters only video assets.
- The images currently displayed on iOS are not Live Photos, but regular static images. This indicates that the picker fails to correctly identify and filter out non-video media types.
Copilot
