Open panudetjt opened 4 years ago
i notice Reloaded 26 of 926 libraries in 1,114ms.
does this happen when you hot reload? i need more information about this, what device you're using, and when specifically this error happens, for example when you click something or at the beginning?
It might be due to the permissions check failing.
In my case after setting checkPermissionAtStartup
to false
, I had to update
if (!hasPermission) return Center(child: CircularProgressIndicator());
to
if (widget.checkPermissionAtStartup && !hasPermission) return Center(child: CircularProgressIndicator());
in the build method of adv_camera.dart
See my pull request: https://github.com/ricnaaru/adv_camera/pull/47
I found following permission in the example app, add them to the manifest file.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera.front" />
<uses-feature android:name="android.hardware.camera2" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="true" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
Remove unwanted ones
console