Flutter Barcode Scanner
A Flutter project that demonstrates how to use Dynamsoft Barcode Reader to scan 1D and 2D barcodes on Android, iOS, Windows, Linux, and web.
flutter-barcode-qr-code-scanner.mp4
Supported Platforms
- Web
- Android
- iOS
- Windows
- Linux (Without camera support)
Getting Started
-
Apply for a 30-day trial license and replace the license key in the
global.dart
file with your own:Future<int> initBarcodeSDK() async { int ret = await barcodeReader.setLicense( 'LICENSE-KEY'); await barcodeReader.init(); await barcodeReader.setBarcodeFormats(BarcodeFormat.ALL); return ret; }
-
Run the project:
flutter run # flutter run -d windows # flutter run -d edge # flutter run -d linux