The BarcodeScan.scan()
method returns a ScanResult
.
The barcode is stored in ScanResult.rawContent
Check your calls to this method and read the barcode from the rawContent
property.
If your project uses pre Flutter 1.12 you need to update Flutter in your App: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
The simples way for upgrading is by replacing:
com.apptreesoftware.barcodescan
com.yourcompany.barcodescan
com.apptreesoftware.barcode_scan
With: de.mintware.barcode_scan
Detailed changes:
Android:
Kotlin Package: com.apptreesoftware.barcodescan
-> de.mintware.barcode_scan
Manifest-Package: com.yourcompany.barcodescan
-> de.mintware.barcodescan
Activity: com.apptreesoftware.barcodescan.BarcodeScannerActivity
-> de.mintware.barcode_scan.BarcodeScannerActivity
iOS:
Bundle ID: com.apptreesoftware.barcode.plugin.example
-> de.mintware.barcode_scan.plugin.example
Flutter:
Method channel: com.apptreesoftware.barcode_scan
-> de.mintware.barcode_scan
pubspec.yaml:
- homepage updated
- deprecated author entry removed
- comments removed
- flutter.plugin.androidPackage:
com.apptreesoftware.barcode_scan
->de.mintware.barcode_scan