如何在iOS上直接将图片选择为jpg或png?如果此功能不可用:如何快速转换它并且不用等待很长时间?
您可以同时使用image_picker在android / iOS中选择图像。
对于android:无需配置。
对于iOS:将以下键添加到您的Info.plist文件中,该文件位于/ios/Runner/Info.plist:
NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.