'Flutter ios app Failed to read exposureBiasesByMode dictionary

my flutter ios app got error message while using camera. this is the message

2022-02-02 15:25:57.132232+0700 Runner[7850:2696308] [Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}

camera is working well. but not save captured image. this is error message

2022-02-02 15:27:45.039954+0700 Runner[7850:2696522] [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = '/storage/emulated/0/Android/data/com.myapp.example/files/Pictures/images.jpg' (OS Error: No such file or directory, errno = 2) #0 _File.throwIfError (dart:io/file_impl.dart:635:7) #1 _File.openSync (dart:io/file_impl.dart:479:5) #2 _File.readAsBytesSync (dart:io/file_impl.dart:539:18) #3 _PresenceScreenState._openCamera. (package:rc_absensi/screen/presence_screen.dart:61:46) #4 State.setState (package:flutter/src/widgets/framework.dart:1088:30) #5 _PresenceScreenState._openCamera (package:my_app/screen/presence_screen.dart:59:7)

app running on Xcode 9.3 and Iphone device (ios 14.2)

anyone can help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source