file_picker allowedExtensions 过滤器不工作

Jur*_*ing 7 android filepicker flutter

我在颤振宽度扩展过滤器中使用扩展 file_picker

try {
      result = await FilePicker.platform.pickFiles(
        type: FileType.custom,
        allowedExtensions: ['jpeg', 'jpg', 'heic', 'pdf'],
      );
    } catch (e) {
      print('fileSelector ****${e}***');
    }
Run Code Online (Sandbox Code Playgroud)

但在 Android 中,我可以选择任何扩展名的所有文件。在 IOS 中这个过滤器工作得很好。这是一个错误file_picker还是我必须做一些额外的事情?