Installation
The Scanbot Barcode Scanner SDK Flutter Plugin is available on pub.dev as the barcode_scanner package. Follow the steps below to add it to your Flutter project.
Add the package
Include the barcode_scanner package in your pubspec.yaml file under dependencies:
dependencies:
barcode_scanner: ^7.1.2 # Use the latest version
Get the latest version from the Changelog.
Then, fetch and install the packages using the Flutter CLI or your IDE:
$ flutter pub get
Android
In the top-level android/build.gradle file:
-
Ensure the Kotlin version is set to 1.8.20 or higher. Typically, this is defined using the ext.kotlin_version variable:
...
buildscript {
ext.kotlin_version = '1.8.20'
...
} -
Add the following
packagingOptionsandroid {
...
packagingOptions {
pickFirst 'META-INF/atomicfu.kotlin_module'
pickFirst 'META-INF/proguard/coroutines.pro'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
iOS
In your ios/Podfile, ensure a global platform version is specified:
platform :ios, '13.0'
Navigate to the ios directory and install or update the Pods:
$ cd ios/
$ pod install
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
