universal_barcode_scanner library

Barcode and QR code scanner for Flutter, on Android, iOS, web and Windows.

One entry point, UniversalBarcodeScanner. Use its static UniversalBarcodeScanner.scan to open the scanner as a route and get a code back, UniversalBarcodeScanner.stream to keep reading, or the widget itself to embed the camera in your own layout on Android and iOS.

final String? code = await UniversalBarcodeScanner.scan(context);

Classes

BarcodeAppBar
App bar shown above the scanner.
BarcodeViewController
Drives an embedded scanner view: flash, pause, resume.
UniversalBarcodeScanner
Barcode and QR code scanner.

Enums

CameraFace
Which camera to open.
ScanFormat
Which symbologies the native scanners accept.
ScanType
What the scanner is pointed at.

Typedefs

BarcodeScannerViewCreated = void Function(BarcodeViewController controller)
Called once the embedded scanner view exists, with the controller that drives it.