一: iPhone添加权限字段,
WeChat664e4bf65188aeabc6fc565f661c47fd.png
二: 在pubspec.yaml文件中添加插件(command+s保存后VSCode自动添加两个插件),如图:
WeChat0cf62a507b767bd3a6da301ed63b5ab2.png
三: 具体代码看demo
https://github.com/wangjianquan/flutterImagePickerDemo.git