barcode_scanner_poc_web library
Web implementation of the BarcodeScannerPoc plugin.
This file contains the logic required to integrate barcode scanning into Flutter Web applications using the html5-qrcode library and a custom JS file.
Main components:
- Dynamic injection of required JS scripts for scanning.
- Widget to render the camera view and handle scan results.
- Configurable options for the web scanner.
Usage:
BarcodeScannerPocWebWidget(
onScan: (code) => print('Scanned code: $code'),
web: BarcodeScannerPocWebOptions(fps: 15, qrbox: 300),
)
Make sure the JS assets are correctly referenced in your Flutter Web project.
Classes
- BarcodeScannerPocWeb
- Main entry point for the web implementation of the plugin.
- BarcodeScannerPocWebOptions
- Options for configuring the web barcode scanner.
- BarcodeScannerPocWebWidget
- Widget that displays the camera view and handles barcode scanning on Flutter Web.
Functions
-
startHtml5Qrcode(
JSString elementId, JSFunction onScan, JSFunction onError, [JSAny? config]) → void