[ad_1]
After I choose a picture from gallery on iPhone, i need to copy it into the property/pictures folder and show it afterwards.
On Simulator the whole lot works fantastic. However on actual gadget I get the next error:
Runner[44762:20816132] [VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: FileSystemException: Can't copy file to '../../property/pictures/image_picker_39C262A3-37A8-4167-8A9A-809C05C6DA67-44762-000025ACD7154E4A.jpg', path="/personal/var/cell/Containers/Information/Software/4691143F-EC0F-470D-B7EC-88A9BCF021F8/tmp/image_picker_39C262A3-37A8-4167-8A9A-809C05C6DA67-44762-000025ACD7154E4A.jpg" (OS Error: No such file or listing, errno = 2)
#0 _File.copy.<nameless closure> (dart:io/file_impl.dart:328:9)
#1 _rootRunUnary (dart:async/zone.dart:1434:47)
#2 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
<asynchronous suspension>
#3 _ProductInputPageState.getFromGallery (bundle:outfitcreator/pages/product_input_page.dart:451:9)
<asynchronous suspension>
I put the folder into the pubspec.yaml.
flutter:
property:
- property/pictures/
Do you’ve any suggestion methods to encounter this?
Thanks very a lot!
[ad_2]
