Skip to content
No description, website, or topics provided.
Objective-C Java Ruby Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
barcode_reader
demo
.gitignore
LICENSE
README.md

README.md

Flutter Barcode Plugin

The sample demonstrates how to create a simple Flutter barcode plugin with Dynamsoft Barcode Reader SDK for Android.

Usage

Download the source code:

git clone https://github.com/yushulx/flutter-barcode-plugin.git

Get a free 30-day trial license and set it in demo\lib\main.dart:

Future<void> initDynamsoftBarcodeReaderState() async {
    _barcodeReader = BarcodeReader();
    await _barcodeReader.initLicense('LICENSE-KEY');
  }

Read barcodes from an image file:

await _controller.takePicture(path);
String results = await _barcodeReader.decodeFile(path);

Build and run the app:

Android

cd demo
flutter run -d <Android Device ID>

iOS

cd demo/ios
pod install
cd ..
flutter run -d <iOS Device ID>

flutter barcode plugin

Flutter Barcode Plugin for Android & iOS

To edit and improve the plugin:

Android

Import barcode_reader/example/android to Android Studio.

iOS

Import barcode_reader/example/ios/Runner.xcworkspace to Xcode.

Reference

You can’t perform that action at this time.