This repository contains multiple samples that show you how use the Dynamsoft Barcode Reader Flutter SDK.
- Latest Flutter SDK
- For Android apps: Android SDK (API Level 21+), platforms and developer tools
- For iOS apps: iOS 13+, macOS with latest Xcode and command line tools
- Android 5.0 (API Level 21) and higher
- iOS 13 and higher
- Guide for Scanning Barcodes with Ready-to-use Component
- Guide for Scanning Barcodes with Foundational APIs
- Guide for Scanning Drivers' License
Sample Name | Description |
---|---|
ScanBarcodes_ReadyToUseComponent | This sample illustrates the simplest way of using Barcode Scanner API to recognize barcodes from video streaming. |
ScanBarcodes_FoundationalAPI | This sample illustrates the simplest way of using Foundational API to recognize barcodes from video streaming. |
ScanDriversLicense | This sample illustrates how to scan drivers' license from video streaming. |
cd ScanBarcodes_ReadyToUseComponent
or
cd ScanBarcodes_FoundationalAPI
or
cd ScanDriversLicense
flutter pub get
Connect a mobile device via USB and run the app.
Android:
flutter run -d <DEVICE_ID>
You can get the IDs of all connected devices with flutter devices
.
iOS:
Install Pods dependencies:
cd ios/
pod install --repo-update
Open the workspace(!) ios/Runner.xcworkspace
in Xcode and adjust the Signing / Developer Account settings. Then, build and run the app in Xcode.
Note
- The license string here grants a time-limited free trial which requires network connection to work.
- You can request a 30-day trial license via the Request a Trial License link.
- You can request a 30-day trial license via the Request a Trial License link.