|
1 | | -# barcode-reader-flutter-samples |
| 1 | +# Dynamsoft Barcode Reader Flutter Samples |
| 2 | + |
| 3 | +This repository contains multiple samples that show you how use the Dynamsoft Capture Vision Flutter SDK. |
| 4 | + |
| 5 | +## Requirements |
| 6 | + |
| 7 | +### Dev tools |
| 8 | + |
| 9 | +* Latest [Flutter SDK](https://flutter.dev/) |
| 10 | +* For Android apps: Android SDK (API Level 21+), platforms and developer tools |
| 11 | +* For iOS apps: iOS 13+, macOS with latest Xcode and command line tools |
| 12 | + |
| 13 | +### Mobile platforms |
| 14 | + |
| 15 | +* Android 5.0 (API Level 21) and higher |
| 16 | +* iOS 13 and higher |
| 17 | + |
| 18 | +## Integration Guide For Your Project |
| 19 | + |
| 20 | +- [Guide for Scanning Barcodes with Ready-to-use Component](./guide-scan-barcodes-ready-to-use-component.md) |
| 21 | +- [Guide for Scanning Barcodes with Foundational APIs](./guide-scan-barcodes-foundational-api.md) |
| 22 | +- [Guide for Scanning Drivers' License](./guide-scan-drivers-license.md) |
| 23 | + |
| 24 | +## Samples |
| 25 | + |
| 26 | +| Sample Name | Description | |
| 27 | +|----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| |
| 28 | +| [ScanBarcodes_ReadyToUseComponent](ScanBarcodes_ReadyToUseComponent) | This sample illustrates the simplest way of using `Barcode Scanner API` to recognize barcodes from video streaming. | |
| 29 | +| [ScanBarcodes_FoundationalAPI](ScanBarcodes_FoundationalAPI) | This sample illustrates the simplest way of using Foundational API to recognize barcodes from video streaming. | |
| 30 | +| [ScanDriversLicense](ScanDriversLicense) | This sample illustrates how to scan drivers' license from video streaming. | |
| 31 | + |
| 32 | +## How to build and run a sample |
| 33 | + |
| 34 | +### Step 1: Enter a sample folder that you want to try |
| 35 | + |
| 36 | +```bash |
| 37 | +cd ScanBarcodes_ReadyToUseComponent |
| 38 | +``` |
| 39 | + |
| 40 | +or |
| 41 | + |
| 42 | +```bash |
| 43 | +cd ScanBarcodes_FoundationalAPI |
| 44 | + ``` |
| 45 | + |
| 46 | +or |
| 47 | + |
| 48 | +```bash |
| 49 | +cd ScanDriversLicense |
| 50 | + ``` |
| 51 | + |
| 52 | +### Step 2: Fetch and install the dependencies of this example project via Flutter CLI: |
| 53 | + |
| 54 | +``` |
| 55 | +flutter pub get |
| 56 | +``` |
| 57 | + |
| 58 | +Connect a mobile device via USB and run the app. |
| 59 | + |
| 60 | +### Step 3: Start your application |
| 61 | + |
| 62 | +**Android:** |
| 63 | + |
| 64 | +``` |
| 65 | +flutter run -d <DEVICE_ID> |
| 66 | +``` |
| 67 | + |
| 68 | +You can get the IDs of all connected devices with `flutter devices`. |
| 69 | + |
| 70 | +**iOS:** |
| 71 | + |
| 72 | +Install Pods dependencies: |
| 73 | + |
| 74 | +``` |
| 75 | +cd ios/ |
| 76 | +pod install --repo-update |
| 77 | +``` |
| 78 | + |
| 79 | +Open the **workspace**(!) `ios/Runner.xcworkspace` in Xcode and adjust the *Signing / Developer Account* settings. Then, build and run the app in Xcode. |
| 80 | + |
| 81 | +> [!NOTE] |
| 82 | +>- The license string here grants a time-limited free trial which requires network connection to work. |
| 83 | +>- You can request a 30-day trial license via |
| 84 | + the [Request a Trial License](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=guide&package=mobile) link. |
| 85 | + |
| 86 | +## Request Dynamsoft Trial License Key |
| 87 | + |
| 88 | +- You can request a 30-day trial license via |
| 89 | + the [Request a Trial License](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=github&package=mobile) link. |
| 90 | + |
| 91 | +## Support |
| 92 | + |
| 93 | +https://www.dynamsoft.com/company/contact/ |
| 94 | + |
| 95 | +## License |
| 96 | + |
| 97 | +[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
0 commit comments