Dynamsoft Barcode Reader Flutter Samples
This repository contains all of the Flutter samples created by the Dynamsoft team to demonstrate the Dynamsoft Barcode Reader Flutter SDK.
Requirements
- Latest Flutter SDK
- Android: Android SDK (API Level 21+), platforms and developer tools
- iOS: iOS 13+, macOS with latest Xcode and command line tools
- Android 5.0 (API Level 21) and higher
- iOS 13 and higher
Integration Guide For Your Project
The Ready-To-Use edition comes with a fully developed and designed UI to help ease the development process and help any developer get the Barcode Reader up and running with a few lines of code.
Alternatively, the Foundational edition is the full API that make up the Barcode Reader and does not come with its own UI. Working with the foundational API requires more effort, but allows the user to fully customize the UI and build the barcode scanner from the ground up.
API Reference
Samples
| Sample Name |
Description |
| ScanBarcodes_ReadyToUseComponent |
This sample demonstrates the simplest way to implement the Barcode Reader using the BarcodeScanner (Ready-To-Use) API. |
| ScanBarcodes_FoundationalAPI |
This sample demonstrates the simplest way to implement the Barcode Reader using the Foundational API. |
| BarcodeReaderSettings |
This sample demonstrates real-time barcode result rendering with a full-screen camera preview and bottom result overlay. |
| LocateAnItemWithBarcode |
This sample demonstrates how to locate a specific barcode by its text. Useful for inventory management and warehouse operations. |
| ReadGS1AI |
This sample demonstrates how to parse and decode GS1 Application Identifiers (AIs) from barcodes. |
| ScanDriversLicense |
This sample demonstrates how to implement the ability to scan drivers’ licenses using the Foundational API. |
| ScanVIN |
This sample demonstrates how to recognize and extract information from VIN barcodes in real-time video streaming. |
| ScenarioOptimizedScanning |
This sample demonstrates template-driven scanner optimization for different barcode formats and scenarios. |
Quick Start
Step 1: Access the sample folder
cd ScanBarcodes_ReadyToUseComponent
or
cd ScanBarcodes_FoundationalAPI
or
cd BarcodeReaderSettings
or
cd LocateAnItemWithBarcode
or
cd ReadGS1AI
or
cd ScanDriversLicense
or
cd ScanVIN
or
cd ScenarioOptimizedScanning
Step 2: Install the dependencies of the sample via Flutter CLI:
flutter pub get
Step 3: Start the application
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 by running flutter devices in the command-line.
iOS:
Before the app can run, the pods need to be installed first:
cd ios/
pod install --repo-update
Once the pods are installed, it is recommended to run the iOS portion of the app via Xcode as such:
- Open the generated xcworkspace (found at
ios/Runner.xcworkspace) in Xcode
- Access the Signing & Capabilities section of the project settings and ensure that it is configured correctly.
- Lastly, select the connected physical iOS device and proceed to build and run the app.
- The license string here grants a time-limited free trial which requires a network connection to work.
- You can request a 30-day trial license via
the Request a Trial License link.
License
- You can request a 30-day trial license via the Trial License portal.
Support
https://www.dynamsoft.com/company/contact/
评论