perfect_scanner

Last updated:

0 purchases

perfect_scanner Image
perfect_scanner Images
Add to Cart

Description:

perfect scanner

Perfect Scanner #
scan qrcode in widget tree.
decode qrcode image from path.
BEFORE USING THIS PACKAGE SET THE PERMISSION FOR CAMERA AND GALLERY. #
Features #

use ScannerView in widget tree to show scan view.
custom identifiable area.
decode qrcode from image path by ScannerController.getQrFromImage.

prepare #
ios
info.list
<key>NSCameraUsageDescription</key>
<string>your usage description here</string>
<key>NSMicrophoneUsageDescription</key>
<string>your usage description here</string>
copied to clipboard
android
<uses-permission android:name="android.permission.CAMERA" />

copied to clipboard
perfect_scanner: ^newest
copied to clipboard
import 'package:perfect_scanner/perfect_scanner.dart';
copied to clipboard
Usage #

show ScannerView in widget tree


Container(
width: 250,
height: 250,
child: ScannerView(
qrOverlay: QrOverlay(
borderColor: Colors.green,
borderWidth: 15,
borderRadius: 10,
cutOutSize: 300,
),
onScan: (image) {
if (image.isNotEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('QR DATA : $image'),
),
);
}
},
),
copied to clipboard

you can use ScannerController.resumeScanning() and ScannerController.pauseScanning() resume/pause camera

ScannerController.resumeScanning();
ScannerController.pauseScanning()
copied to clipboard

get qrcode string from image path

String result = await ScannerController.getQrFromImage(imagePath);
copied to clipboard

toggle flash light

ScannerController.toggleFlash();
copied to clipboard
License #
MIT License

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.