Last updated:
0 purchases
flutter datalogic
flutter_datalogic #
A Flutter package communicate with Datalogic scanners.
Platform Support #
Android
iOS
✅
❌
Installation #
First, add flutter_datalogic as a dependency in your pubspec.yaml file.
Android #
Create file name proguard-rules.pro in same directory with your android/app/build.gradle
-keep class com.datalogic.cradle.** { *; }
-keep class com.datalogic.decode.** { *; }
-keep class com.datalogic.device.** { *; }
-keep class com.datalogic.extension.** { *; }
-keep class com.datalogic.softspot.** { *; }
copied to clipboard
Configure the buildTypes release in your android/app/build.gradle file.
buildTypes {
release {
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
copied to clipboard
Add config in your android/app/src/main/AndroidManifest.xml file.
<application>
<uses-library
android:name="com.datalogic.device"
android:required="false" />
</application>
copied to clipboard
Usage #
Initialize the FlutterDatalogic Object and attach a listener to the onScanResult Stream.
Example:
import 'package:flutter_datalogic/flutter_datalogic.dart';
FlutterDatalogic dl = FlutterDatalogic();
StreamSubscription onScanSubscription = dl.onScannerInfo.listen((result) {
print(result.status);
print(result.data);
});
copied to clipboard
Learn more #
API Documentation
Plugin documentation website
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.