Flutter imagePicker

白小嘿發表於2019-01-22

一: iPhone新增許可權欄位,
<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

Flutter imagePicker
二: 在pubspec.yaml檔案中新增外掛(command+s儲存後VSCode自動新增兩個外掛),如圖:

Flutter imagePicker
三: 具體程式碼看demo

github.com/wangjianqua…


相關文章