freedelity / flutter_native_barcode_scanner

Fast barcode/QR scanner flutter plugin using PlatformView and processing on native side
https://pub.dev/packages/native_barcode_scanner
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

Improve installation instructions #24

Closed KhirbyCalma closed 6 months ago

KhirbyCalma commented 7 months ago

When using your example and installation instructions, the scanner had camera permission problems. Whenever opening the scanner, it did not ask the user for camera permissions.

To solve this, we had to install Flutter's native camera library (https://pub.dev/packages/camera) and then it worked. So please, include that in the instructions or when installing this library, please include the camera library too.

Verbruik commented 6 months ago

Hi !

So first of all thank for the repport, but I wont add the Camera plugin while the purpose of this plugin is to run all natively. That's exactly the points of this plugin and that's why the reader is faster than using Camera + Google's ML Kit

The permission should be ask from native platform and do not rely on Flutter for the example app. If you prefer to manage the permission yourself, which i recommand by the way, you could use permission_handler instead of implements the Camera plugin only for the permission.